SQLite PRAGMA

PRAGMA empty_result_callbacks

deprecated

Query or change the empty-result-callbacks flag.

PRAGMA empty_result_callbacks;
PRAGMA empty_result_callbacks = boolean;

What the SQLite documentation says

Query or change the empty-result-callbacks flag.

The empty-result-callbacks flag affects the sqlite3_exec() API only. Normally, when the empty-result-callbacks flag is cleared, the callback function supplied to the sqlite3_exec() is not invoked for commands that return zero rows of data. When empty-result-callbacks is set in this situation, the callback function is invoked exactly once, with the third parameter set to 0 (NULL). This is to enable programs that use the sqlite3_exec() API to retrieve column-names even when a query returns no data.

This pragma is deprecated and exists for backwards compatibility only. New applications should avoid using this pragma. Older applications should discontinue use of this pragma at the earliest opportunity. This pragma may be omitted from the build when SQLite is compiled using SQLITE_OMIT_DEPRECATED.

From sqlite.org's pragma documentation for SQLite 3.54.1, in the public domain.

← defer_foreign_keys · encoding →