mirror of
https://github.com/luapower/mysql.git
synced 2025-02-08 08:10:32 +01:00
unimportant
This commit is contained in:
parent
3e9cf7ecba
commit
744bf8f464
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user