1
0
mirror of https://github.com/luapower/mysql.git synced 2024-12-29 12:20:32 +01:00

unimportant

This commit is contained in:
Cosmin Apreutesei 2021-09-17 18:24:21 +03:00
parent f38a4c1739
commit a7a30e7cdb

View File

@ -1212,13 +1212,13 @@ end
conn.get_collation = protect(get_collation)
do
local function pass(self, ret, ...)
local function pass(self, schema, 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 .. '`'))
return pass(self, schema, self:query('use `' .. schema .. '`'))
end
end