1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Extra comment on the implementation of SQLITE_TESTCTRL_FK_NO_ACTION,

warning about the need to reset the schema in order for the setting change
to take full effect.

FossilOrigin-Name: a50a333ae11ba5d92f432108308ac0bec9afb00f466b78c8d3f3aa7e2851ef21
This commit is contained in:
drh
2023-10-21 16:25:44 +00:00
parent fcef73a787
commit 5c8cfe9617
3 changed files with 12 additions and 8 deletions

View File

@@ -4176,6 +4176,10 @@ int sqlite3_test_control(int op, ...){
** false then clearn that setting. If the SQLITE_FkNoAction setting is
** abled, all foreign key ON DELETE and ON UPDATE actions behave as if
** they were NO ACTION, regardless of how they are defined.
**
** NB: One must usually run "PRAGMA writable_schema=RESET" after
** using this test-control, before it will take full effect. failing
** to reset the schema can result in some unexpected behavior.
*/
case SQLITE_TESTCTRL_FK_NO_ACTION: {
sqlite3 *db = va_arg(ap, sqlite3*);