Hi,

 

I need a way to check if a table exists from some C code. I wrote some code to try to select a row from a table and then checked the error result. However, the error code is always ‘1’ (which is just a general SQLITE_ERROR) if the table does not exist. Is there any way I can differentiate between the error code meaning ‘no table found’ and other errors?? Or is there a neater way to check for existence of a table?

 

TIA,

Richard.

No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005

Reply via email to