aboutsummaryrefslogtreecommitdiff
path: root/src/pragma.c
diff options
context:
space:
mode:
authordrh <>2022-10-13 12:47:33 +0000
committerdrh <>2022-10-13 12:47:33 +0000
commite995d2c226e2b65c5e40cd238415bdfeb0936e8c (patch)
tree9b2219f327bd1fb7af389ed14bdcd52f32e2e45d /src/pragma.c
parent1ffb6be1195c592e6c85d57603984b1f36bfde62 (diff)
downloadsqlite-e995d2c226e2b65c5e40cd238415bdfeb0936e8c.tar.gz
sqlite-e995d2c226e2b65c5e40cd238415bdfeb0936e8c.zip
Proposed optimization to the IS NULL and NOT NULL operators that avoids
loading the entire content of larges strings and BLOBs. Response to [forum:/info/3c08d4715dc05b00|forum post 3c08d4715dc05b00]. FossilOrigin-Name: 45f171565442f9fd6574fb93ae7abe83c168b20be68af42531bc55571450d3ab
Diffstat (limited to 'src/pragma.c')
-rw-r--r--src/pragma.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pragma.c b/src/pragma.c
index 7976f83c6..7aea3dd2c 100644
--- a/src/pragma.c
+++ b/src/pragma.c
@@ -1791,9 +1791,7 @@ void sqlite3Pragma(
|| pTab->iPKey==mxCol) ) mxCol--;
if( mxCol>=0 ){
sqlite3ExprCodeGetColumnOfTable(v, pTab, iDataCur, mxCol, 3);
- if( sqlite3VdbeGetLastOp(v)->opcode==OP_Column ){
- sqlite3VdbeChangeP5(v, OPFLAG_TYPEOFARG);
- }
+ sqlite3VdbeTypeofColumn(v, 3);
}
if( !isQuick ){