diff options
author | drh <> | 2023-08-17 17:48:20 +0000 |
---|---|---|
committer | drh <> | 2023-08-17 17:48:20 +0000 |
commit | 2e0ce58d2cfa6d866f40bdd4bb5330ca4c4225c2 (patch) | |
tree | 4525fe9c1835ea7bd1e2809991474d99b371a56a /src | |
parent | e15b35d5a61ef7fd58d6d050a9c91ea7004d6e38 (diff) | |
download | sqlite-2e0ce58d2cfa6d866f40bdd4bb5330ca4c4225c2.tar.gz sqlite-2e0ce58d2cfa6d866f40bdd4bb5330ca4c4225c2.zip |
Do not allow bound parameters in the ON CONFLICT clause of an UPSERT.
dbsqlfuzz 9983e2c77634a8ccf33b5c91fa9982599de5f9e9
FossilOrigin-Name: 3c06709335eb4b98e3a684e3ebbae69eeb6a21b452bce29159c82bb632d6a042
Diffstat (limited to 'src')
-rw-r--r-- | src/upsert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upsert.c b/src/upsert.c index 85994020c..be0d0550d 100644 --- a/src/upsert.c +++ b/src/upsert.c @@ -178,7 +178,7 @@ int sqlite3UpsertAnalyzeTarget( pExpr = &sCol[0]; } for(jj=0; jj<nn; jj++){ - if( sqlite3ExprCompare(pParse,pTarget->a[jj].pExpr,pExpr,iCursor)<2 ){ + if( sqlite3ExprCompare(0,pTarget->a[jj].pExpr,pExpr,iCursor)<2 ){ break; /* Column ii of the index matches column jj of target */ } } |