aboutsummaryrefslogtreecommitdiff
path: root/src/update.c
diff options
context:
space:
mode:
authordrh <>2022-04-06 15:41:53 +0000
committerdrh <>2022-04-06 15:41:53 +0000
commit2a7dcbfbb0e6fcd255fda917d0f28a10588b7dd0 (patch)
tree17fdc08617f10256ad40eed7b4fa50fedd092a25 /src/update.c
parentc16a5686fe4860b86a30a8357314ed2171f75d40 (diff)
downloadsqlite-2a7dcbfbb0e6fcd255fda917d0f28a10588b7dd0.tar.gz
sqlite-2a7dcbfbb0e6fcd255fda917d0f28a10588b7dd0.zip
Attempt to show triggers in the TreeView output from DELETE, INSERT, and
UPDATE statements. FossilOrigin-Name: b0939d6f4d94b45dce53ace6295508a67d574cc72bd6977623bf77065b3c4e64
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/update.c b/src/update.c
index 908fc3ad6..654704147 100644
--- a/src/update.c
+++ b/src/update.c
@@ -353,13 +353,6 @@ void sqlite3Update(
}
assert( db->mallocFailed==0 );
-#if TREETRACE_ENABLED
- if( sqlite3TreeTrace & 0x10000 ){
- sqlite3TreeViewUpdate(0, pParse->pWith, pTabList, pChanges, pWhere,
- onError, pOrderBy, pLimit, pUpsert);
- }
-#endif
-
/* Locate the table which we want to update.
*/
pTab = sqlite3SrcListLookup(pParse, pTabList);
@@ -383,6 +376,14 @@ void sqlite3Update(
# define isView 0
#endif
+#if TREETRACE_ENABLED
+ if( sqlite3TreeTrace & 0x10000 ){
+ sqlite3TreeViewLine(0, "In sqlite3Update() at %s:%d", __FILE__, __LINE__);
+ sqlite3TreeViewUpdate(pParse->pWith, pTabList, pChanges, pWhere,
+ onError, pOrderBy, pLimit, pUpsert, pTrigger);
+ }
+#endif
+
/* If there was a FROM clause, set nChangeFrom to the number of expressions
** in the change-list. Otherwise, set it to 0. There cannot be a FROM
** clause if this function is being called to generate code for part of