From 6a5ea5e99f4996888bd54fb1d2605d3277b4e1d5 Mon Sep 17 00:00:00 2001 From: Cosmin Apreutesei Date: Sat, 25 Apr 2015 08:49:51 +0300 Subject: [PATCH] fix for strict.lua --- mysql.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mysql.lua b/mysql.lua index 875ca5c..8044840 100644 --- a/mysql.lua +++ b/mysql.lua @@ -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