aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
authordrh <>2022-04-06 00:29:21 +0000
committerdrh <>2022-04-06 00:29:21 +0000
commit7d2c1d24b0a331590ec2c8fd53bc9bf569b54300 (patch)
treea2955fdf3cee669cf44c671263fcac0941532a08 /src/insert.c
parentec534e6a23f305b571f448480b4bfed2de8f0c16 (diff)
downloadsqlite-7d2c1d24b0a331590ec2c8fd53bc9bf569b54300.tar.gz
sqlite-7d2c1d24b0a331590ec2c8fd53bc9bf569b54300.zip
Add new diagnostic "sqlite3TreeView" routines for IdList, Upsert, and for
INSERT statements. This is all debugging code. There are no changes to release builds. FossilOrigin-Name: f3084122039bcb30c8617f5f432009a49be8b488235850a1f10ef862c91560b2
Diffstat (limited to 'src/insert.c')
-rw-r--r--src/insert.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/insert.c b/src/insert.c
index dde685e30..8a022df07 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -722,6 +722,13 @@ void sqlite3Insert(
assert( db->mallocFailed==0 );
dest.iSDParm = 0; /* Suppress a harmless compiler warning */
+#if SELECTTRACE_ENABLED
+ if( sqlite3SelectTrace & 0x100 ){
+ sqlite3TreeViewInsert(0, pParse->pWith, pTabList, pColumn, pSelect,
+ onError, pUpsert);
+ }
+#endif
+
/* If the Select object is really just a simple VALUES() list with a
** single row (the common case) then keep that one row of values
** and discard the other (unused) parts of the pSelect object