mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Added fix for catching MySQL errors
This commit is contained in:
parent
4bd964859f
commit
924939c8f2
2 changed files with 2 additions and 1 deletions
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue