On Sat, 19 Sep 2015 11:29:37 +0200, gwenn <gwenn.kahz at gmail.com>
wrote:

>Hello,
>Is there any way to know when a prepared statement is recompiled ?
>For example:
>
>rc = sqlite3_prepare_v2(db, "SELECT * FROM test", -1, &stmt, NULL);
>...
>cc = sqlite3_column_count(stmt);
>...
>rc = sqlite3_exec(db, "ALTER TABLE test ADD COLUMN data DEFAULT
>'missing'", NULL, NULL, NULL);
>...
>rc = sqlite3_step(stmt);
>// how to know that the column count is not good anymore ?

http://www.sqlite.org/rescode.html#schema

-- 
Regards,

Kees Nuyt

Reply via email to