1
0
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:
drh
2018-07-27 18:12:40 +00:00
parent 7810ab6464
commit bcd15938ae
4 changed files with 18 additions and 17 deletions

View File

@@ -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 ){