mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Faster implementation of sqlite3IsBinary().
FossilOrigin-Name: be05d0db09f43cc3362c28273463d1d236af737a4f8a494cf1050da07ed0df47
This commit is contained in:
10
src/expr.c
10
src/expr.c
@@ -328,13 +328,6 @@ CollSeq *sqlite3BinaryCompareCollSeq(
|
||||
return pColl;
|
||||
}
|
||||
|
||||
/*
|
||||
** Return true if CollSeq is the default built-in BINARY.
|
||||
*/
|
||||
int sqlite3IsBinary(const CollSeq *p){
|
||||
return p==0 || sqlite3StrICmp(p->zName,sqlite3StrBINARY)==0;
|
||||
}
|
||||
|
||||
/*
|
||||
** Generate code for a comparison operator.
|
||||
*/
|
||||
@@ -3592,8 +3585,7 @@ expr_code_doover:
|
||||
case TK_COLUMN: {
|
||||
int iTab = pExpr->iTable;
|
||||
if( ExprHasProperty(pExpr, EP_FixedCol) ){
|
||||
pExpr = pExpr->pLeft;
|
||||
goto expr_code_doover;
|
||||
return sqlite3ExprCodeTarget(pParse, pExpr->pLeft,target);
|
||||
}
|
||||
if( iTab<0 ){
|
||||
if( pParse->iSelfTab<0 ){
|
||||
|
||||
Reference in New Issue
Block a user