• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 12103
100%
master: 88%

Build:
Build:
LAST BUILD BRANCH: release/3.3
DEFAULT BRANCH: master
Ran 15 May 2018 04:08PM UTC
Jobs 1
Files 349
Run time 30s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
12103

push

travis-ci

kyukhin
sql: allow ON CONFLICT REPLACE only for PK index

Constraints which require VDBE bytecode will be executed before making
insertion into Tarantool. For three major constraints - UNIQUE,
FOREIGN-KEY, CHECK the execution order doesn't matter if error action is
not REPLACE, because one constraint violation doesn't affect others.

But violation of constraint with ON CONFLICT REPLACE leads to a
removal of the whole tuple. When only PRIMARY KEY has REPLACE as
error action, it is not a problem and such behavior is absolutely
similar to Tarantool. But when we are dealing with secondary index
NOT NULL constraint with ON CONFLICT REPLACE, conflict in
secondary index leads to a whole tuple removal, and as a result
when there is also a conflict in primary key index, insertion
will lead to success instead of raising error.

In this patch possibility to create constraint non PRIMARY KEY
constraint with ON CONFLICT REPLACE has been banned, that kind of
behavior leads to a proper error message.

Closes #2963

60889 of 75420 relevant lines covered (80.73%)

1471254.26 hits per line

Jobs
ID Job ID Ran Files Coverage
3 12103.3 (TARGET=coverage) 15 May 2018 04:08PM UTC 0
80.73
Travis Job 12103.3
Source Files on build 12103
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #12103
  • f74f806d on github
  • Prev Build on 2.0 (#12098)
  • Next Build on 2.0 (#12105)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc