SQLite User Forum

SQLITE_OMIT_TRIGGER
Login

SQLITE_OMIT_TRIGGER

(1) By markdiener on 2020-09-02 12:55:15 [source]

There are compile time flags which are not working.

If you built amalgamation 3330000, you would get lots of implicit declarations.

SQLITE_OMIT_TRIGGER

sqlite3.c:156373:1: warning: implicit declaration of function 'sqlite3DeleteTriggerStep' is invalid in C99 [-Wimplicit-function-declaration] sqlite3.c:158572:3: warning: implicit declaration of function 'sqlite3FinishTrigger' is invalid in C99 [-Wimplicit-function-declaration] sqlite3.c:158577:3: warning: implicit declaration of function 'sqlite3BeginTrigger' is invalid in C99 [-Wimplicit-function-declaration] sqlite3.c:158641:21: warning: implicit declaration of function 'sqlite3TriggerUpdateStep' is invalid in C99 [-Wimplicit-function-declaration] sqlite3.c:158641:19: warning: incompatible integer to pointer conversion assigning to 'TriggerStep *' (aka 'struct TriggerStep *') from 'int' [-Wint-conversion] sqlite3.c:158646:23: warning: implicit declaration of function 'sqlite3TriggerInsertStep' is invalid in C99 [-Wimplicit-function-declaration] sqlite3.c:158646:21: warning: incompatible integer to pointer conversion assigning to 'TriggerStep *' (aka 'struct TriggerStep *') from 'int' [-Wint-conversion] sqlite3.c:158651:21: warning: implicit declaration of function 'sqlite3TriggerDeleteStep' is invalid in C99 [-Wimplicit-function-declaration] sqlite3.c:158651:19: warning: incompatible integer to pointer conversion assigning to 'TriggerStep *' (aka 'struct TriggerStep *') from 'int' [-Wint-conversion] sqlite3.c:158655:21: warning: implicit declaration of function 'sqlite3TriggerSelectStep' is invalid in C99 [-Wimplicit-function-declaration] sqlite3.c:158655:19: warning: incompatible integer to pointer conversion assigning to 'TriggerStep *' (aka 'struct TriggerStep *') from 'int' [-Wint-conversion] sqlite3.c:158682:3: warning: implicit declaration of function 'sqlite3DropTrigger' is invalid in C99 [-Wimplicit-function-declaration]

Others include:

SQLITE_OMIT_WINDOWFUNC SQLITE_OMIT_PRAGMA

(2) By Dan Kennedy (dan) on 2020-09-02 16:45:04 in reply to 1 [link] [source]

Many of those options, including the three you mention, only work when building from the full source-tree, not from the amalgamation. See the "Important Note" here:

https://sqlite.org/compile.html#_options_to_omit_features