On 06/18/2012 09:30 AM, Tomas Guisasola Gorham wrote:
Hi Gedalya
It looks like this is a matter of the quality of my code, but it
seems that luasql should, ideally, be backwards-compatible with
itself and with the way 5.1 works. I would imagine there is plenty of
code out there that relies on this behavior, so it would be nice if
there's a way to keep it working.
Fair enough. I would add the global assignment to the
5.1 version. But I think when compiled for Lua 5.2 the code should
respect the new behaviour and _do not_ assign to the global variable.
Don't you agree?
Yes, makes sense.
It's worth noting that I'm new to lua, and obviously I
copied-and-pasted the luasql code. I can't say what the original URL
was, but the example code here[1], the project homepage, is
henceforth broken, and it's probably where I got it from. The docs in
github seem to be updated.
[1] http://www.keplerproject.org/luasql/examples.html
In fact, they are not. You can check the actual version at
github.com:
https://github.com/keplerproject/luasql/blob/master/doc/us/examples.html
I thought I saw it partially updated with lines like:
local driver = require "luasql.postgres"
As opposed to the site.
I am very busy these days, but the site update is on my list.
Thank you!!
Regards,
Tomás
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]