Added fix for catching MySQL errors

This commit is contained in:
Luca Deri 2016-03-19 15:04:18 +01:00
parent 4bd964859f
commit 924939c8f2
2 changed files with 2 additions and 1 deletions

View file

@ -163,6 +163,7 @@ function getNumFlows(interface_id, version, host, protocol, port, l7proto, info,
if(db_debug == true) then io.write(sql.."\n") end
res = interface.execSQLQuery(sql)
if(type(res) == "string") then
if(db_debug == true) then io.write(res.."\n") end
return {}