From 14e0d57d6962b3be7faabb58764b3b07983e4733 Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 3 Oct 2008 18:07:56 -0700 Subject: Moving 'SafeQuery' to the private part. --- lib/dblib.lua | 7 ++++--- 1 file 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, -- cgit v1.2.3