We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0840ecf commit 6137ce8Copy full SHA for 6137ce8
tests/testthat/test-dbQuoteString.R
@@ -0,0 +1,11 @@
1
+context("dbQuoteString")
2
+
3
+test_that("quoting works", {
4
+ if (!mysqlHasDefault()) skip("Test database not available")
5
6
+ con <- dbConnect(MySQL(), dbname = "test")
7
+ on.exit(dbDisconnect(con))
8
9
+ expect_equal(dbQuoteString(con, "\\'"), SQL("'\\\\\\''"))
10
+ expect_equal(dbQuoteString(con, "'"), SQL("'\\''"))
11
+})
0 commit comments