aboutsummaryrefslogtreecommitdiff
path: root/src/where.c
diff options
context:
space:
mode:
authordrh <>2024-03-18 12:49:30 +0000
committerdrh <>2024-03-18 12:49:30 +0000
commit27a5ee855d6428246ea7fc9511a2a10a85c3199c (patch)
tree6553c78a8855c593e257bde89219fdab882bdf6b /src/where.c
parent75924d3ae22587cac6c68caad9212a7621e47135 (diff)
downloadsqlite-27a5ee855d6428246ea7fc9511a2a10a85c3199c.tar.gz
sqlite-27a5ee855d6428246ea7fc9511a2a10a85c3199c.zip
Improvements to EXPLAIN QUERY PLAN output for multi-row VALUES claues.
FossilOrigin-Name: ac6f095e13e43d66c06552c8b01f6bec3407c9d41a34c4cdb0be57b0b828ad0d
Diffstat (limited to 'src/where.c')
-rw-r--r--src/where.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c
index 2a99c7398..2463e823c 100644
--- a/src/where.c
+++ b/src/where.c
@@ -6144,7 +6144,11 @@ WhereInfo *sqlite3WhereBegin(
){
pWInfo->eDistinct = WHERE_DISTINCT_UNIQUE;
}
- ExplainQueryPlan((pParse, 0, "SCAN CONSTANT ROW"));
+ if( ALWAYS(pWInfo->pSelect)
+ && (pWInfo->pSelect->selFlags & SF_MultiValue)==0
+ ){
+ ExplainQueryPlan((pParse, 0, "SCAN CONSTANT ROW"));
+ }
}else{
/* Assign a bit from the bitmask to every term in the FROM clause.
**