diff options
author | Pixel <pixel@nobis-crew.org> | 2008-10-03 18:07:56 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2008-10-03 18:07:56 -0700 |
commit | 14e0d57d6962b3be7faabb58764b3b07983e4733 (patch) | |
tree | 9fd14c1f7cd186f7b0ad896b393b1442702bb326 | |
parent | 143e0fb068b8965cf0d114b787ec8e6b2049ccd4 (diff) |
Moving 'SafeQuery' to the private part.
-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, |