________________________________
From: Simon Slavin <[email protected]>
To: General Discussion of SQLite Database <[email protected]>
Sent: Thu, March 24, 2011 5:39:58 AM
Subject: Re: [sqlite] sqlite3_close( )  error


On 24 Mar 2011, at 3:06am, Zaryab M. Munir wrote:



>By the way, to whoever understands the code on the web page.  Why does one 
>function simply check the return value as a boolean '( rc )' but the other 
>function check by explicitly comparing with SQLITE_OK ?  I have no complaint 
>about either, and using both does demonstrate that they are both okay, I just 
>wonder if there is something there I am not seeing.


rc is INT as sqlite3_open() returns an INT.
SQLITE_OK is defined as 0 in 'sqlite3.h',
so both are checked as boolean.


Marian Cascaval



      
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to