Skip to content
Browse files

compat with LuaSQL 2.3.0 (Lua 5.2)

  • Loading branch information...
1 parent 9592888 commit 6e1712e967a8d7678b907c195991982059faba8a @fperrad committed May 2, 2012
Showing with 5 additions and 2 deletions.
  1. +3 −0 CHANGES
  2. +2 −2 src/Coat/Persistent.lua
View
3 CHANGES
@@ -1,5 +1,8 @@
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
View
4 src/Coat/Persistent.lua
@@ -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

0 comments on commit 6e1712e

Please sign in to comment.
Something went wrong with that request. Please try again.