Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Missing SessionClose() in Sqlite3Session::Close()
Missing SessionClose() in Sqlite3Session::Close() [message #52506] Mon, 14 October 2019 05:18 Go to next message
zsolt is currently offline  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)
Re: Missing SessionClose() in Sqlite3Session::Close() [message #52508 is a reply to message #52506] Mon, 14 October 2019 10:15 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
zsolt wrote on Mon, 14 October 2019 05:18
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)


Thanks, applied. rc5 tomorrow...
Re: Missing SessionClose() in Sqlite3Session::Close() [message #52511 is a reply to message #52508] Mon, 14 October 2019 18:13 Go to previous message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
Thanks!
Previous Topic: sql using sqlexp
Next Topic: can I use 127.0.0.1 as host in open function?
Goto Forum:
  


Current Time: Sat Apr 20 01:58:57 CEST 2024

Total time taken to generate the page: 0.03905 seconds