SQLite alternative to deprecated PRAGMA empty_result_callbacks -
according documentation:
when empty-result-callbacks set in situation, callback function invoked once, third parameter set 0 (null). enable programs use sqlite3_exec() api retrieve column-names when query returns no data. i in need of functionality in program, documentation further goes on pragma deprecated , should not used in new applications. doesn't alternative is. how supposed functionality if pragma deprecated?
the easiest answer not use sqlite3_exec, convenience wrapper. use sqlite3_prepare_v2, sqlite3_step, , sqlite3_column_* (including column_count , use, column_name) explicitly. (and sqlite3_finalize, of course).
if you're not sure how this, implementation of sqlite3_exec easy find in source distribution, src/legacy.c
Comments
Post a Comment