Home » U++ Library support » U++ SQL » Missing SessionClose() in Sqlite3Session::Close()
Missing SessionClose() in Sqlite3Session::Close() [message #52506] |
Mon, 14 October 2019 05:18 |
zsolt
Messages: 696 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
It causes a lot af wierd behaviour when I use APPSQL or Session's Sql object and changing databases while the app is running.
It reads some data from the previously opened database. It is not so good.
So I suggest something like this:
void Sqlite3Session::Close() {
sql.Clear();
if (NULL != db) {
+ SessionClose();
int retval;
#ifndef flagNOAPPSQL
if(SQL.IsOpen() && &SQL.GetSession() == this)
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 20 11:47:07 CEST 2024
Total time taken to generate the page: 0.01852 seconds
|