diff options
-rw-r--r-- | lib/dblib.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/dblib.lua b/lib/dblib.lua index df858bb..65c9013 100644 --- a/lib/dblib.lua +++ b/lib/dblib.lua @@ -506,9 +506,7 @@ _luadb = { if conditions == nil or conditions == "" then conditions = "1" end t._.conditions = conditions end, -} -luadb = { SafeQuery = function(db, str) local r = db._.conn:Query(str) if luadb.debugmode then @@ -523,6 +521,9 @@ luadb = { return r end, +} + +luadb = { opendb = function(id, user, password, base, prefix) local db @@ -540,7 +541,7 @@ luadb = { db = SQLConnection(id, user, password, base) return { opentable = _luadb.opentable, - SafeQuery = luadb.SafeQuery, + SafeQuery = _luadb.SafeQuery, sql_escape = sql_escape, ErrNO = function(db) return db._.conn:ErrNO() end, Error = function(db) return db._.conn:Error() end, |