From de8e80daf846f6ba6e6d8d7a5d97ad72dbad2394 Mon Sep 17 00:00:00 2001 From: Dongdong Kong Date: Tue, 10 Oct 2023 13:00:16 +0800 Subject: [PATCH 1/2] fix immediate parameter error in dbplyr::dbExecute https://github.com/tidyverse/dbplyr/blob/1e48cfaf795f9101792567bc68ce7d24a19db9d5/R/rows.R#L767 --- R/result.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/result.R b/R/result.R index e1f7be3..0e8469f 100644 --- a/R/result.R +++ b/R/result.R @@ -93,7 +93,7 @@ setMethod("fetch", c("MySQLResult", "missing"), function(res, n, ...) { #' @export #' @useDynLib RMySQL RS_MySQL_exec setMethod("dbSendQuery", c("MySQLConnection", "character"), - function(conn, statement) { + function(conn, statement, ...) { checkValid(conn) rsId <- .Call(RS_MySQL_exec, conn@Id, as.character(statement)) From e8915bc5152b5aea8dd88cd18ef658ed009f43d7 Mon Sep 17 00:00:00 2001 From: Dongdong Kong Date: Tue, 10 Oct 2023 23:31:17 +0800 Subject: [PATCH 2/2] update doc --- man/query.Rd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/query.Rd b/man/query.Rd index 2354912..22aacc2 100644 --- a/man/query.Rd +++ b/man/query.Rd @@ -20,7 +20,7 @@ \S4method{fetch}{MySQLResult,missing}(res, n = -1, ...) -\S4method{dbSendQuery}{MySQLConnection,character}(conn, statement) +\S4method{dbSendQuery}{MySQLConnection,character}(conn, statement, ...) \S4method{dbClearResult}{MySQLResult}(res, ...)