=?ISO-8859-2?Q?Bogus=B3aw_Brandys?= <[EMAIL PROTECTED]> wrote: > In sqlite 3.3.4 SQLite3_Exec return proper error for example 19 when > column should be unique, but SQLite3_Prepare always return error code 1 > I'm using sqlite3_prepare before sqlite3_Step to execute some SQL and I > think it should return the same error code as sqlite3_exec. > Any reasons why it is happen ? >
sqlite3_step() returns SQLITE_ERROR. Then you use sqlite3_reset() to get the proper error code. This may seem goofy, but it is what it is. It cannot be changed without breaking backward compatibility. -- D. Richard Hipp <[EMAIL PROTECTED]>