fix for strict.lua

This commit is contained in:
Cosmin Apreutesei 2015-04-25 08:49:51 +03:00
parent f38c898c99
commit 6a5ea5e99f
1 changed files with 2 additions and 5 deletions

View File

@ -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