[Freeswitch-users] Empty SQL response cause unexpected DBH error in LUA

Marc Quore marquore at gmail.com
Tue Jun 11 15:06:53 UTC 2019

Hi, All

I'm debugging the following Lua script which should be inserting records
into database using data, returned from preceding SQL query:

[image: image.png]

Everything works fine, unless SELECT returns no rows producing the
following error:

[ERR] freeswitch_lua.cpp:460 DBH NOT Connected.

Are there any references as for how such empty responses should be
correctly handled in Lua code to avoid this error, while using dbh:query?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190611/32361c10/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 4289 bytes
Desc: not available
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190611/32361c10/attachment.png>

More information about the FreeSWITCH-users mailing list