aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2023-09-29 15:53:55 +0000
committerdrh <>2023-09-29 15:53:55 +0000
commit8be48440b6a916cdba08f4b68f8b255587b6e674 (patch)
treecdbe96d09dbadc8c530c5e8f155fa49a9d55bfd8 /src
parentd93cfa28315fbf753a0ea00702f7ffc71a0ac718 (diff)
downloadsqlite-8be48440b6a916cdba08f4b68f8b255587b6e674.tar.gz
sqlite-8be48440b6a916cdba08f4b68f8b255587b6e674.zip
Remove an incorrect assert().
FossilOrigin-Name: f090af775f6d2ce8b50850f5c9e33546bcb9cff5467d99ca210530cb7ca83d5b
Diffstat (limited to 'src')
-rw-r--r--src/where.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/where.c b/src/where.c
index a8ac3bbcd..05ae24f7b 100644
--- a/src/where.c
+++ b/src/where.c
@@ -3564,9 +3564,6 @@ static void wherePartIdxExpr(
Expr *pRight = pPart->pRight;
u8 aff;
- /* Commuting the term is pointless */
- assert( pRight->op!=TK_COLUMN || !sqlite3ExprIsConstant(pLeft) );
-
if( pLeft->op!=TK_COLUMN ) return;
if( !sqlite3ExprIsConstant(pRight) ) return;
if( !sqlite3IsBinary(sqlite3ExprCompareCollSeq(pParse, pPart)) ) return;