1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

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
This commit is contained in:
drh
2022-04-06 00:29:21 +00:00
parent ec534e6a23
commit 7d2c1d24b0
5 changed files with 146 additions and 10 deletions

View File

@@ -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