Do not allow bound parameters in the ON CONFLICT clause of an UPSERT.

dbsqlfuzz 9983e2c77634a8ccf33b5c91fa9982599de5f9e9

FossilOrigin-Name: 3c06709335eb4b98e3a684e3ebbae69eeb6a21b452bce29159c82bb632d6a042
This commit is contained in:
drh
2023-08-17 17:48:20 +00:00
parent e15b35d5a6
commit 2e0ce58d2c
4 changed files with 23 additions and 10 deletions
+1 -1
View File
@@ -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 */
}
}