[Freeswitch-users] DB close in lua

Avi Marcus avi at avimarcus.net
Wed Feb 13 21:07:26 MSK 2013


Wiki <http://wiki.freeswitch.org/wiki/Lua> 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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130213/52ea7647/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list