Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Mohamed Boubekri on Aug 16, 2023, 09:18 AM

Title: Question about sqlite db
Post by: Mohamed Boubekri on Aug 16, 2023, 09:18 AM
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
Title: Re: Question about sqlite db
Post by: habi on Aug 16, 2023, 01:33 PM
You have to FreeSQLQuery everytime.
Title: Re: Question about sqlite db
Post by: Mohamed Boubekri on Aug 16, 2023, 01:59 PM
I had doubts about this. Most importantly, thank you for the clarification.