U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ SQL » Fix to Sqlite3Session::Open
Fix to Sqlite3Session::Open [message #19915] Sun, 01 February 2009 19:18 Go to previous message
Novo is currently offline  Novo
Messages: 1431
Registered: December 2006
Ultimate Contributor
Explanation.

sqlite3_open initializes database argument even if it cannot open database. So, it is incorrect to use NULL == db to check whether database was opened or not.
  • Attachment: sqlite3.diff
    (Size: 1.27KB, Downloaded 382 times)


Regards,
Novo
 
Read Message
Read Message
Read Message
Previous Topic: Conditional jump or move depends on uninitialised value(s)
Next Topic: few questions from a newbie
Goto Forum:
  


Current Time: Mon Apr 27 01:38:11 GMT+2 2026

Total time taken to generate the page: 0.00863 seconds