SQLite – FOREIGN KEY constraint names

This patch modifies PRAGMA foreign_key_list in such a way that the command returns a name of a constraint in the second column. Define CHN_SQLITE_ENABLE_FKNAMES to something other then 0, otherwise patched files will behave like original ones. PRAGMA compile_options returns additional ENABLE_FKNAMES if the code was compiled with CHN_SQLITE_ENABLE_FKNAMES defined.

Back

Mail me