Good day, As an error check, I've got a program opening an encrypted file.
sqlite3_prepare_v2 returns SQLITE_OK and ppStmt is not null. When I run sqlite3_step(ppStmt) it returns SQLITE_NOTADB. Recognizing an error at this point I'd like to clean up properly. sqlite3_finalize(ppStmt) returns SQLITE_NOTADB. At this point, has it actually cleared the prepared statement, so I can set ppStmt = NULL and carry on to close the db and tell the user they shouldn't have opened that file? http://www.sqlite.org/capi3ref.html#sqlite3_finalize is a bit brief on the success of finalizing the statement given that it returned an error. I'm using the basic amalgamation c file SQLite version 3.7.4. regards, Adam DeVita _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users