Question about sqlite db

Started by Mohamed Boubekri, Aug 16, 2023, 09:18 AM

Previous topic - Next topic

Mohamed Boubekri

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
| What now ? | Not yet ! |
Morrocan:- [ 🇲🇦 ].

habi

You have to FreeSQLQuery everytime.

Mohamed Boubekri

I had doubts about this. Most importantly, thank you for the clarification.
| What now ? | Not yet ! |
Morrocan:- [ 🇲🇦 ].