aboutsummaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authordrh <>2024-06-06 23:56:36 +0000
committerdrh <>2024-06-06 23:56:36 +0000
commitdf9471b1b55e956fec7f25392bfe7fc5ca481202 (patch)
tree4edf89134b9d2744dde6058a0de1bec0ac4de09d /src/window.c
parent404ddadbd421fd3754cab1a3e90bb2dd74467fbd (diff)
parentbd1402487b5e2efcf8d7efa439ab070cee8f8ee2 (diff)
downloadsqlite-df9471b1b55e956fec7f25392bfe7fc5ca481202.tar.gz
sqlite-df9471b1b55e956fec7f25392bfe7fc5ca481202.zip
Allow the query planner access to the argument of LIMIT even if that
argument is a bound parameter. FossilOrigin-Name: c4a9dda2809c6e0e3d928e11e5553ead82cd9df551bcd35b11a7d869ef80ab8e
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index bcee65d92..e5a78e37d 100644
--- a/src/window.c
+++ b/src/window.c
@@ -909,7 +909,7 @@ static ExprList *exprListAppendList(
int iDummy;
Expr *pSub;
pSub = sqlite3ExprSkipCollateAndLikely(pDup);
- if( sqlite3ExprIsInteger(pSub, &iDummy) ){
+ if( sqlite3ExprIsInteger(pSub, &iDummy, 0) ){
pSub->op = TK_NULL;
pSub->flags &= ~(EP_IntValue|EP_IsTrue|EP_IsFalse);
pSub->u.zToken = 0;