diff options
author | drh <> | 2022-10-13 21:08:34 +0000 |
---|---|---|
committer | drh <> | 2022-10-13 21:08:34 +0000 |
commit | 4bc1cc18476aaa674f8a24f859e1ed754c365505 (patch) | |
tree | 8615989555bb36f06e4d5e40728c1d865d216c17 /src/upsert.c | |
parent | d92c652ac1fe570e27acd83e15903fb695386880 (diff) | |
download | sqlite-4bc1cc18476aaa674f8a24f859e1ed754c365505.tar.gz sqlite-4bc1cc18476aaa674f8a24f859e1ed754c365505.zip |
This experimental branch attempts to use columns for an index-on-expression
in place of the expression that is being indexed. This particular check-in
mostly works, but there are still issues.
FossilOrigin-Name: 2e8d4fd4cfd9e82f33c707ba246fe2bb3ca01762cf5ac5905058fbc7adf0abe7
Diffstat (limited to 'src/upsert.c')
-rw-r--r-- | src/upsert.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/upsert.c b/src/upsert.c index fb6c7c0c0..85994020c 100644 --- a/src/upsert.c +++ b/src/upsert.c @@ -166,6 +166,7 @@ int sqlite3UpsertAnalyzeTarget( if( pIdx->aiColumn[ii]==XN_EXPR ){ assert( pIdx->aColExpr!=0 ); assert( pIdx->aColExpr->nExpr>ii ); + assert( pIdx->bHasExpr ); pExpr = pIdx->aColExpr->a[ii].pExpr; if( pExpr->op!=TK_COLLATE ){ sCol[0].pLeft = pExpr; |