Hey everyone, i get the following error in the console when i shutdown my server CTRL + C
AN ERROR HAS OCCURED [unable to close due to unfinalized statements or unfinished backups]
CALLSTACK
*FUNCTION [onScriptUnload()] scripts/server-side.nut line [30]
LOCALS
[this] TABLE
[WARNING] onScriptUnload failed to execute -- check the console for more details.
That line which represent line [30]
DisconnectSQL( db );
Actually i think that i need to make database free after i use it, by using FreeSQLQuery
local p = QuerySQL(db, INSERT......); FreeSQLQuery(p);
Is that right ? if not then which is responsable for that error ?
unable to close due to unfinalized statements or unfinished backups
You have to FreeSQLQuery everytime.
I had doubts about this. Most importantly, thank you for the clarification.