Details
-
Type:
Technical task
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
Description
Test case:
create table t1 (pk int primary key, i int) engine=LevelDB;
insert into t1 values (1,1);
insert into t1 values (1,100) on duplicate key update i = 100;
The 2nd insert fails with 1022: Can't write; duplicate key in table 't1'
revision-id: psergey@askmonty.org-20130114131529-qv3531bw9fdklwob revno: 4483 branch-nick: mysql-5.6-leveldb
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Analyzed. It turns out, Storage Engine API has several calls/members dedicated to ON DUPLICATE KEY UPDATE handling. ha_leveldb doesn't implement them, and this is the reason for error. I'll need to implement them.