[Pdns-users] mysql has gone away
chayes
chayes at afo.net
Wed Sep 17 20:47:04 UTC 2014
Oh wait!
I misunderstood ... cur is the cursor.
Do I need to close all three as below?
env = assert (luasql.mysql())
con = assert (env:connect ("dbname", "dbuser", "dbpassword", "127.0.0.1",
3306))
cur = assert (con:execute ("SELECT count(*) from whiteList where wldomain =
'"..strDomain3.."'"))
row = tonumber(cur:fetch(1, "a"))
cur:close()
con:close()
env:close()
--
View this message in context: http://powerdns.13854.n7.nabble.com/mysql-has-gone-away-tp10974p10979.html
Sent from the PowerDNS mailing list archive at Nabble.com.
More information about the Pdns-users
mailing list