diff options
author | drh <drh@noemail.net> | 2018-05-26 18:03:48 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2018-05-26 18:03:48 +0000 |
commit | 59155065e07a468e1a74f3a90cc2dc612287a6bf (patch) | |
tree | 1e44ff436c7f2411982c03d259b8cf6e068c6a04 /src/expr.c | |
parent | 9201184711c2841b1a84ae644ab994e1b431ab4f (diff) | |
download | sqlite-59155065e07a468e1a74f3a90cc2dc612287a6bf.tar.gz sqlite-59155065e07a468e1a74f3a90cc2dc612287a6bf.zip |
Experimental change that allows overloaded functions to be analyzed by
the xBestIndex method and used by the xFilter method of a virtual table.
FossilOrigin-Name: a353b1d7ee6c5989ba1b98a3990c9a4c2ff39ae66572fd1200606e8ef585e5fa
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index 6aff83a25..a45f38f9c 100644 --- a/src/expr.c +++ b/src/expr.c @@ -3903,7 +3903,7 @@ expr_code_doover: ** "glob(B,A). We want to use the A in "A glob B" to test ** for function overloading. But we use the B term in "glob(B,A)". */ - if( nFarg>=2 && (pExpr->flags & EP_InfixFunc) ){ + if( nFarg>=2 && ExprHasProperty(pExpr, EP_InfixFunc) ){ pDef = sqlite3VtabOverloadFunction(db, pDef, nFarg, pFarg->a[1].pExpr); }else if( nFarg>0 ){ pDef = sqlite3VtabOverloadFunction(db, pDef, nFarg, pFarg->a[0].pExpr); |