Quote MariaDB strings and identifiers.
In MariaDB, identifiers are enclosed in backticks, e.g. x
.
## S4 method for signature 'MariaDBConnection,Id' dbQuoteIdentifier(conn, x, ...) ## S4 method for signature 'MariaDBConnection,SQL' dbQuoteIdentifier(conn, x, ...) ## S4 method for signature 'MariaDBConnection,character' dbQuoteIdentifier(conn, x, ...) ## S4 method for signature 'MariaDBConnection' dbQuoteLiteral(conn, x, ...) ## S4 method for signature 'MariaDBConnection,SQL' dbQuoteString(conn, x, ...) ## S4 method for signature 'MariaDBConnection,character' dbQuoteString(conn, x, ...) ## S4 method for signature 'MariaDBConnection,SQL' dbUnquoteIdentifier(conn, x, ...)
if (mariadbHasDefault()) { con <- dbConnect(RMariaDB::MariaDB()) dbQuoteIdentifier(con, c("a b", "a`b")) dbQuoteString(con, c("a b", "a'b")) dbDisconnect(con) }
Useful links