aboutsummaryrefslogtreecommitdiff
path: root/src/upsert.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/upsert.c')
-rw-r--r--src/upsert.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/upsert.c b/src/upsert.c
index d98a82743..5c37d4c12 100644
--- a/src/upsert.c
+++ b/src/upsert.c
@@ -180,4 +180,21 @@ int sqlite3UpsertAnalyzeTarget(
return SQLITE_ERROR;
}
+/*
+** Generate bytecode that does an UPDATE as part of an upsert.
+*/
+void sqlite3UpsertDoUpdate(
+ Parse *pParse, /* The parsing and code-generating context */
+ Upsert *pUpsert, /* The ON CONFLICT clause for the upsert */
+ Table *pTab, /* The table being updated */
+ Index *pIdx, /* The UNIQUE constraint that failed */
+ int iDataCur, /* Cursor for the pTab, table being updated */
+ int iIdxCur /* Cursor for the pIdx */
+){
+ Vdbe *v = pParse->pVdbe;
+ assert( v!=0 );
+ VdbeNoopComment((v, "Begin DO UPDATE of UPSERT"));
+ VdbeNoopComment((v, "End DO UPDATE of UPSERT"));
+}
+
#endif /* SQLITE_OMIT_UPSERT */