diff options
author | drh <drh@noemail.net> | 2018-04-20 13:18:51 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2018-04-20 13:18:51 +0000 |
commit | 7fc3aba8623e703cfdb2eade8ec3d1362da38907 (patch) | |
tree | 52282a5e1fb3fdfc8ae4575116ef4e9e0375ffb2 /src/insert.c | |
parent | 2ac4e5cca9b882d142fd21c83a0e930f9bbd56da (diff) | |
download | sqlite-7fc3aba8623e703cfdb2eade8ec3d1362da38907.tar.gz sqlite-7fc3aba8623e703cfdb2eade8ec3d1362da38907.zip |
Enhance UPSERT so that the UPDATE uses the same set of cursors as the INSERT.
FossilOrigin-Name: c37f39d18d41ae5ba6c4561d87cbbf71f3b6896b86cc5cff9cdf046b02dc521a
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/insert.c b/src/insert.c index b3a313836..782244a13 100644 --- a/src/insert.c +++ b/src/insert.c @@ -812,6 +812,8 @@ void sqlite3Insert( pTabList->a[0].iCursor = iDataCur; pUpsert->pUpsertSrc = pTabList; pUpsert->regData = regData; + pUpsert->iDataCur = iDataCur; + pUpsert->iIdxCur = iIdxCur; if( pUpsert->pUpsertTarget ){ sqlite3UpsertAnalyzeTarget(pParse, pTabList, pUpsert); } |