No error for a duplicate key
Bug #702395 reported by
Kostja Osipov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tarantool |
Fix Released
|
Medium
|
Kostja Osipov |
Bug Description
Tarantool does not return an error when one tries to insert a tuple whose key is already present in the namespace.
It does not indicate whether or not the tuple already existed in any other way.
Either produce an error, or change the protocol to indicate whether or not a tuple was inserted into the namespace.
Changed in tarantool: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
To post a comment you must log in.
There is actually BOX_ADD flag, which turns REPLACE into INSERT.
This has been tested as part of Lua activity.