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:
10
src/expr.c
10
src/expr.c
@ -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);
|
||||
|
Reference in New Issue
Block a user