Does DatabaseQuery Release Previous Query's Resources?
Posted: Thu Feb 29, 2024 5:44 pm
Hi
The documentation mentions that FinishDatabaseQuery() must be called to free the query resources. However, what happens in the following case with multiple queries?
In the above pseudo code do the subsequent queries release the resources of the previous query? Does the FinishDatabaseQuery(2) clear all the resources from all queries or should a FinishDatabaseQuery(2) be called before the subsequent queries?
Thanks,
Simon
The documentation mentions that FinishDatabaseQuery() must be called to free the query resources. However, what happens in the following case with multiple queries?
Code: Select all
DatabaseQuery(2,"select * from mytable1")
... process the data
DatabaseQuery(2,"select * from mytable2")
... process the data
DatabaseQuery(2,"select * from mytable3")
... process the data
FinishDatabaseQuery(2)
Thanks,
Simon