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.

_______________________________________________
Pdns-users mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to