Commit 6e1712e9 authored by François Perrad's avatar François Perrad

compat with LuaSQL 2.3.0 (Lua 5.2)

parent 95928883
Revision history for lua-CoatPersistent
0.1.3
+ work with LuaSQL 2.3.0
0.1.2 Sat Mar 3 22:30:00 2012
+ work with Lua 5.2.0
+ add LuaDist support
......
......@@ -41,8 +41,8 @@ local function establish_connection (class, driver, ...)
drv[class] = driver
local conn = cnx[driver]
if not conn then
require('luasql.' .. driver)
local env = _G.luasql[driver]()
local luasql = require('luasql.' .. driver)
local env = luasql[driver]()
if not env then
error("cannot create an environment for " .. driver)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment