unimportant

This commit is contained in:
Cosmin Apreutesei 2021-09-15 04:23:01 +03:00
parent 3a8130b35b
commit b0e0288c09
1 changed files with 12 additions and 1 deletions

View File

@ -1204,12 +1204,23 @@ local function query(self, sql, opt)
end
conn.query = protect(query)
function get_collation(self)
--[[local]] function get_collation(self)
local t = query(self, 'select @@collation_connection cl, @@character_set_connection cs')[1]
return t.cl, t.cs
end
conn.get_collation = protect(get_collation)
do
local function pass(self, ret, ...)
if not ret then return nil, ... end
self.schema = schema
return ret, ...
end
function conn:use(schema)
return pass(self, self:query('use `' .. schema .. '`'))
end
end
local stmt = {}
local cursor_types = {