<div dir="ltr"><div>Hi, All</div><div><br></div><div>I'm debugging the following Lua script which should be inserting records into database using data, returned from preceding SQL query:<br></div><div><br></div><div><div><img src="cid:ii_jwrwnk0q0" alt="image.png" width="539" height="88"></div><div><br></div><div>Everything works fine, unless SELECT returns no rows producing the following error:</div><div><br></div><div>[ERR] freeswitch_lua.cpp:460 DBH NOT Connected. <br></div><div><br></div><div>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?<br></div><div><br></div><div>Regards,</div><div>Marc<br></div></div></div>