diff options
author | dan <dan@noemail.net> | 2018-04-17 18:16:10 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2018-04-17 18:16:10 +0000 |
commit | 2cc00423a0696c866c49ea6debc68d83f7da17a8 (patch) | |
tree | ad58305d2bc5bf5e0a30caf2b35345b32834eb0e /src/insert.c | |
parent | 5015c9b50e19987042ee19a33349b57fd58fd847 (diff) | |
download | sqlite-2cc00423a0696c866c49ea6debc68d83f7da17a8.tar.gz sqlite-2cc00423a0696c866c49ea6debc68d83f7da17a8.zip |
Add some more simple test cases for UPSERT. And a minor fix.
FossilOrigin-Name: 27cd3b2fb2ad0cf2b36741bd1057cb7973954d40456e9db158261a38b049d2b5
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 4 |
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 |