1
0
mirror of https://github.com/sqlite/sqlite.git synced 2026-01-06 08:01:16 +03:00

Make sure WHERE clause constraints A=B and B=A work the same even with

COLLATE clauses.

FossilOrigin-Name: b3f53668115f0a12a01167c2a75eecc735416024
This commit is contained in:
drh
2012-12-08 14:16:47 +00:00
parent 0ca10dfbed
commit fb76f5a00c
3 changed files with 8 additions and 8 deletions

View File

@@ -1244,7 +1244,7 @@ static void exprAnalyze(
pNew = pTerm;
}
exprCommute(pParse, pDup);
pLeft = pDup->pLeft;
pLeft = sqlite3ExprSkipCollate(pDup->pLeft);
pNew->leftCursor = pLeft->iTable;
pNew->u.leftColumn = pLeft->iColumn;
testcase( (prereqLeft | extraRight) != prereqLeft );