diff options
author | drh <> | 2023-03-25 22:37:23 +0000 |
---|---|---|
committer | drh <> | 2023-03-25 22:37:23 +0000 |
commit | 7bb842642c75b8b2664dd1c7b47df65bf4500e9e (patch) | |
tree | d6ffb1d5929deb91c2c81108b5088cba31f6b39b /src | |
parent | 28ae1956583ebd539f6019d5c6be5e6c54a7c3b6 (diff) | |
download | sqlite-7bb842642c75b8b2664dd1c7b47df65bf4500e9e.tar.gz sqlite-7bb842642c75b8b2664dd1c7b47df65bf4500e9e.zip |
When reading sqlite_stat4 data during query planning, be sure to expand
zeroblobs prior to running comparisons. Fix for the issue identified
by [forum:/forumpost/5275207102|forum post 5275207102].
FossilOrigin-Name: 5c8dd8dfcaab9c364b3a126ca35880ef57f5cecbe030771e646c934c8cf43709
Diffstat (limited to 'src')
-rw-r--r-- | src/vdbemem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vdbemem.c b/src/vdbemem.c index 02588707d..1b8808ea6 100644 --- a/src/vdbemem.c +++ b/src/vdbemem.c @@ -1587,6 +1587,7 @@ static int valueFromExpr( rc = valueFromExpr(db, pExpr->pLeft, enc, aff, ppVal, pCtx); testcase( rc!=SQLITE_OK ); if( *ppVal ){ + rc = ExpandBlob(*ppVal); sqlite3VdbeMemCast(*ppVal, aff, enc); sqlite3ValueApplyAffinity(*ppVal, affinity, enc); } |