Skip to content

Commit

Permalink
Simulate is a pure S3 class
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Mar 4, 2024
1 parent 4708ae6 commit 5197775
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/backend-mysql.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5197775

Please sign in to comment.