mirror of
https://github.com/luapower/mysql.git
synced 2024-12-28 20:00:33 +01:00
fix for strict.lua
This commit is contained in:
parent
f38c898c99
commit
6a5ea5e99f
@ -5,6 +5,8 @@
|
||||
--Supports mysql Connector/C 6.1.
|
||||
--Based on mySQL 5.7 manual.
|
||||
|
||||
if not ... then require'mysql_test' end
|
||||
|
||||
local ffi = require'ffi'
|
||||
local bit = require'bit'
|
||||
require'mysql_h'
|
||||
@ -1254,12 +1256,9 @@ end
|
||||
|
||||
--publish methods
|
||||
|
||||
if not rawget(_G, '__MYSQL__') then
|
||||
__MYSQL__ = true
|
||||
ffi.metatype('MYSQL', {__index = conn})
|
||||
ffi.metatype('MYSQL_RES', {__index = res})
|
||||
ffi.metatype('MYSQL_STMT', {__index = stmt})
|
||||
end
|
||||
|
||||
--publish classes (for introspection, not extending)
|
||||
|
||||
@ -1269,6 +1268,4 @@ M.stmt = stmt
|
||||
M.params = params
|
||||
M.fields = fields
|
||||
|
||||
if not ... then require'mysql_test' end
|
||||
|
||||
return M
|
||||
|
Loading…
Reference in New Issue
Block a user