From 5197775791b4942cb6cdb543eb1d3812c7219e53 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Mon, 4 Mar 2024 07:59:15 -0600 Subject: [PATCH] Simulate is a pure S3 class --- R/backend-mysql.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/R/backend-mysql.R b/R/backend-mysql.R index 5a2fccf5d..427c33f19 100644 --- a/R/backend-mysql.R +++ b/R/backend-mysql.R @@ -267,7 +267,9 @@ sql_escape_datetime.MySQL <- sql_escape_datetime.MariaDBConnection # dbQuoteIdentifier() for RMySQL lacks handling of SQL objects #' @export sql_escape_ident.MySQLConnection <- function(con, x) { - if (methods::is(x, "SQL")) { + if (!isS4(con)) { # for simulate_mysql() + NextMethod() + } else if (methods::is(x, "SQL")) { x } else { DBI::dbQuoteIdentifier(con, x)