unimportant

This commit is contained in:
Cosmin Apreutesei 2021-10-30 22:44:03 +03:00
parent 3e9cf7ecba
commit 744bf8f464
2 changed files with 3 additions and 3 deletions

View File

@ -1385,7 +1385,7 @@ local qmap = {
['\26'] = '\\Z',
['\"' ] = '\\"',
}
function conn:quote(s)
function conn:esc(s)
--MBCS that are not ASCII supersets need decoding for correct quoting.
assert(self.charset_is_ascii_superset, 'NYI')
return s:gsub('[\\\'%z\b\n\r\t\26\"]', qmap)

View File

@ -130,9 +130,9 @@ Free statement.
The MySQL server version string.
### `cn:quote(s) -> s`
### `cn:esc(s) -> s`
Quote literal string to be used in queries. Quoting only works if current
Escape string to be used inside SQL string literals. This only works if current
collation is known (ses `collation` arg on `connect()`).
### Multiple result set support