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

First cut at logic to perform DO UPDATE for rowid tables.

FossilOrigin-Name: a9080bc8b8c5f3b399eb1819bb5009581f178d85bb2b2cca7bc16a7b81b06863
This commit is contained in:
drh
2018-04-13 21:55:22 +00:00
parent 9eddacade9
commit 0b30a11645
5 changed files with 51 additions and 12 deletions

View File

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