R/dbQuoteLiteral_MariaDBConnection.R

Defines functions dbQuoteLiteral_MariaDBConnection

Documented in dbQuoteLiteral_MariaDBConnection

#' @rdname mariadb-quoting
#' @usage NULL
dbQuoteLiteral_MariaDBConnection <- function(conn, x, ...) {
  # Switchpatching to avoid ambiguous S4 dispatch, so that our method
  # is used only if no alternatives are available.

  if (inherits(x, "difftime")) return(cast_difftime(callNextMethod()))

  callNextMethod()
}

#' @rdname mariadb-quoting
#' @export
setMethod("dbQuoteLiteral", signature("MariaDBConnection"), dbQuoteLiteral_MariaDBConnection)

Try the RMariaDB package in your browser

Any scripts or data that you put into this service are public.

RMariaDB documentation built on Oct. 27, 2023, 1:07 a.m.