mirror of
https://github.com/luapower/mysql.git
synced 2025-01-01 14:00:27 +01:00
unimportant
This commit is contained in:
parent
f38a4c1739
commit
a7a30e7cdb
@ -1212,13 +1212,13 @@ end
|
|||||||
conn.get_collation = protect(get_collation)
|
conn.get_collation = protect(get_collation)
|
||||||
|
|
||||||
do
|
do
|
||||||
local function pass(self, ret, ...)
|
local function pass(self, schema, ret, ...)
|
||||||
if not ret then return nil, ... end
|
if not ret then return nil, ... end
|
||||||
self.schema = schema
|
self.schema = schema
|
||||||
return ret, ...
|
return ret, ...
|
||||||
end
|
end
|
||||||
function conn:use(schema)
|
function conn:use(schema)
|
||||||
return pass(self, self:query('use `' .. schema .. '`'))
|
return pass(self, schema, self:query('use `' .. schema .. '`'))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user