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 previous 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

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


Current Time: Sun Apr 28 13:18:34 CEST 2024

Total time taken to generate the page: 0.03026 seconds