aboutsummaryrefslogtreecommitdiff
path: root/src/delete.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/delete.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/delete.c')
-rw-r--r--src/delete.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/delete.c b/src/delete.c
index ca3705f55..a4c5d53c5 100644
--- a/src/delete.c
+++ b/src/delete.c
@@ -300,13 +300,6 @@ void sqlite3DeleteFrom(
assert( db->mallocFailed==0 );
assert( pTabList->nSrc==1 );
-#if TREETRACE_ENABLED
- if( sqlite3TreeTrace & 0x10000 ){
- sqlite3TreeViewDelete(0, pParse->pWith, pTabList, pWhere,
- pOrderBy, pLimit);
- }
-#endif
-
/* Locate the table which we want to delete. This table has to be
** put in an SrcList structure because some of the subroutines we
** will be calling are designed to work with multiple tables and expect
@@ -331,6 +324,14 @@ void sqlite3DeleteFrom(
# define isView 0
#endif
+#if TREETRACE_ENABLED
+ if( sqlite3TreeTrace & 0x10000 ){
+ sqlite3TreeViewLine(0, "In sqlite3Delete() at %s:%d", __FILE__, __LINE__);
+ sqlite3TreeViewDelete(pParse->pWith, pTabList, pWhere,
+ pOrderBy, pLimit, pTrigger);
+ }
+#endif
+
#ifdef SQLITE_ENABLE_UPDATE_DELETE_LIMIT
if( !isView ){
pWhere = sqlite3LimitWhere(