1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Back off of the extended upsert syntax that allows multiple ON CONFLICT

clauses.  The syntax now is exactly as in PostgreSQL and MySQL.  Add support
for WHERE clauses on the conflict-target phrase, for partial indexes.

FossilOrigin-Name: 2c1b1987d8de1efa8ed7e1f199710e32ff20edf8ceec570514fc63bb1ef264e0
This commit is contained in:
drh
2018-04-13 13:06:45 +00:00
parent 788d55aa77
commit e9c2e772f1
7 changed files with 128 additions and 90 deletions

View File

@@ -805,9 +805,9 @@ void sqlite3Insert(
}
}
#ifndef SQLITE_OMIT_UPSERT
if( pUpsert ){
if( pUpsert && pUpsert->pUpsertTarget ){
pTabList->a[0].iCursor = iDataCur;
sqlite3UpsertAnalyze(pParse, pTabList, pUpsert);
sqlite3UpsertAnalyzeTarget(pParse, pTabList, pUpsert);
}
#endif