Home » U++ Library support » U++ SQL » Access violation since rev 2407
Access violation since rev 2407 [message #26754] |
Tue, 25 May 2010 23:01 |
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
|
|
|
Goto Forum:
Current Time: Wed Jun 05 06:12:43 CEST 2024
Total time taken to generate the page: 0.01130 seconds
|