aboutsummaryrefslogtreecommitdiff
path: root/src/upsert.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-04-17 21:59:34 +0000
committerdrh <drh@noemail.net>2018-04-17 21:59:34 +0000
commit54514c9813578878b684fe7501e3e7ca23828129 (patch)
tree4b81f63dd5b6c6e3ca1fb813817462bf67abb812 /src/upsert.c
parent7ef8a3e666e5f16d5d4916fd0d186d8479baa5f2 (diff)
downloadsqlite-54514c9813578878b684fe7501e3e7ca23828129.tar.gz
sqlite-54514c9813578878b684fe7501e3e7ca23828129.zip
Remove unreachable branches. 100% MC/DC in TH3 now.
FossilOrigin-Name: 558865d5c3c297155e1be5ea73effb46a995ea146bd745b23330c94782c6c45b
Diffstat (limited to 'src/upsert.c')
-rw-r--r--src/upsert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upsert.c b/src/upsert.c
index e1af0a0b7..25fcf6d67 100644
--- a/src/upsert.c
+++ b/src/upsert.c
@@ -114,7 +114,7 @@ int sqlite3UpsertAnalyzeTarget(
if( HasRowid(pTab)
&& pTarget->nExpr==1
&& (pTerm = pTarget->a[0].pExpr)->op==TK_COLUMN
- && (pTerm->iColumn==XN_ROWID || pTerm->iColumn==pTab->iPKey)
+ && pTerm->iColumn==XN_ROWID
){
/* The conflict-target is the rowid of the primary table */
assert( pUpsert->pUpsertIdx==0 );