[Rd] typo in example(dbEscapeStrings) (PR#13521)

From: <mayeul.kauffmann_at_ecoledelapaix.org>
Date: Thu, 12 Feb 2009 17:00:07 +0100 (CET)

Full_Name: Mayeul Kauffmann
Version: 2.8.1
OS: x86_64-pc-linux-gnu (kubuntu)
Submission from: (NULL) (

The file /library/RMySQL/html/dbEscapeStrings.html documents dbEscapeStrings() In the example, an 's' is missing in line 3:

## Not run:

tmp <- sprintf("select * from emp where lname = %s", "O'Reilly") sql <- dbEscapeString(con, tmp)
dbGetQuery(con, sql)
## End(Not run)

sql <- dbEscapeString(con, tmp)
should be:
sql <- dbEscapeStrings(con, tmp)

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 12 Feb 2009 - 18:16:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 13 Feb 2009 - 11:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive