1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-01 06:01:49 +03:00

Simplification to the fix in the prior check-in.

FossilOrigin-Name: f79cb748c9447ca4d2184a24219feb19571eb79870e0bedf14704743a3d5f8b9
This commit is contained in:
drh
2024-11-28 02:09:27 +00:00
parent 3ff6aa6e39
commit dc7b94e63f
3 changed files with 9 additions and 15 deletions

View File

@ -6193,14 +6193,8 @@ static SQLITE_NOINLINE int exprCompareVariable(
int iVar;
sqlite3_value *pL, *pR = 0;
if( pExpr->op==TK_VARIABLE ){
assert( pVar->u.zToken!=0 );
assert( pExpr->u.zToken!=0 );
if( pVar->iColumn==pExpr->iColumn
&& strcmp(pVar->u.zToken,pExpr->u.zToken)==0
){
return 0;
}
if( pExpr->op==TK_VARIABLE && pVar->iColumn==pExpr->iColumn ){
return 0;
}
if( (pParse->db->flags & SQLITE_EnableQPSG)!=0 ) return 2;
sqlite3ValueFromExpr(pParse->db, pExpr, SQLITE_UTF8, SQLITE_AFF_BLOB, &pR);