aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/insert.c')
-rw-r--r--src/insert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insert.c b/src/insert.c
index 4f9e43b9e..c5c92d6b7 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -1580,7 +1580,7 @@ void sqlite3GenerateConstraintChecks(
}
#ifndef SQLITE_OMIT_UPSERT
case OE_Update: {
- sqlite3UpsertDoUpdate(pParse, pUpsert, pTab, 0, iDataCur, 0);
+ sqlite3UpsertDoUpdate(pParse, pUpsert, pTab, 0, iDataCur);
/* Fall through */
}
#endif
@@ -1787,7 +1787,7 @@ void sqlite3GenerateConstraintChecks(
}
#ifndef SQLITE_OMIT_UPSERT
case OE_Update: {
- sqlite3UpsertDoUpdate(pParse, pUpsert, pTab, pIdx, iDataCur, iIdxCur);
+ sqlite3UpsertDoUpdate(pParse, pUpsert, pTab, pIdx, iIdxCur+ix);
/* Fall through */
}
#endif