17 lines
531 B
Plaintext
17 lines
531 B
Plaintext
$OpenBSD: patch-luasql-sqlite3_lua,v 1.2 2006/07/30 04:51:39 pedro Exp $
|
|
--- luasql-sqlite3.lua.orig Thu Jun 2 15:43:29 2005
|
|
+++ luasql-sqlite3.lua Sat Jul 29 17:46:49 2006
|
|
@@ -57,8 +57,11 @@ local function isref(t) return t.ref_co
|
|
|
|
|
|
function luasql.sqlite3()
|
|
+ local f = assert(package.loadlib("./libluasqlite3.so",
|
|
+ "luaopen_sqlite3_core"))
|
|
+ f = f()
|
|
if not api then
|
|
- api, ERR, TYPE, AUTH = load_libluasqlite3()
|
|
+ api, ERR, TYPE, AUTH = f.init()
|
|
end
|
|
|
|
local env = setmetatable( {}, env_class_mt )
|