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 » Access violation since rev 2407
Access violation since rev 2407 [message #26754] Tue, 25 May 2010 23:01 Go to next message
frankdeprins is currently offline  frankdeprins
Messages: 99
Registered: September 2008
Location: Antwerp - Belgium
Member
Hello,

I have the following function in my program, that worked OK up until rev 2406:

String GetSQLiteVersion ()
{
   Sqlite3Session dbsession;
   dbsession.Open(":memory:");
   Sql sql(dbsession);
   if (sql.Execute("select sqlite_version()") && sql.Fetch())
   {
      return sql[0].ToString();
   }
   return "";
}


Since rev 2407 (.Sqlite3: ToLower for coltype), it is exactly in the ToLower that was added at line 248 of Sqlite3upp.cpp, that the Access Violation is raised. It seems sqlite returns null for this situation.
Maybe I should add that I use the latest sqlite amalgamation (3.6.23.1) in my local Upp installation instead of the one which is normally included in Upp. But, this worked flawlessly until now and I cannot imagine this would be the culprit.

PS: Changing this line 248 to:
	String coltype = ToLower(String(sqlite3_column_decltype(current_stmt,i)));
fixes it.


Greetz,

frank

[Updated on: Tue, 25 May 2010 23:07]

Report message to a moderator

Re: Access violation since rev 2407 [message #26755 is a reply to message #26754] Wed, 26 May 2010 00:04 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
HI,

I have the same problem since r2407.
I use non modified upp on linux.

The proposed fix works fine for me Smile
Re: Access violation since rev 2407 [message #26770 is a reply to message #26755] Wed, 26 May 2010 17:46 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Such a little patch and so much troubles...

Should be fixed now.

Mirek
Previous Topic: Oracle8: Insert a long RAW Value
Next Topic: Oracle: How can use standard OCI without install oracle client?
Goto Forum:
  


Current Time: Thu Mar 28 13:14:05 CET 2024

Total time taken to generate the page: 0.01438 seconds