Wiki say:
dbh:release() (optional) releases the handle back to the pool so it can be re-used by another thread. This is also automatically done when the dbh goes out of scope and is garbage collected (for example when your script returns).


-Avi Marcus


On Wed, Feb 13, 2013 at 8:01 PM, Archana Venugopan <a.venugopan@mundio.com> wrote:

Hi,

 

Am trying close DB connection in lua script(dbh:close()) in freeswitch. But I am getting this error

 

2013-02-13 16:43:41.327172 [ERR] mod_lua.cpp:102 /usr/local/freeswitch/scripts/directory.lua:66: attempt to call method 'close' (a nil value)

stack traceback:

 

Can anyone please let me know why my lua is not recognising the close function? Is there anyother ways to close my DB connection in lua? Thanks.

 

Regards,

Archana

 


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org