LevelDB storage engine (MDEV-3841)

[MDEV-4036] LevelDB: INSERT .. ON DUPLICATE KEY UPDATE does not work, produces ER_DUP_KEY Created: 2013-01-14  Updated: 2013-01-15  Resolved: 2013-01-15

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Technical task Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Petrunia
Resolution: Fixed Votes: 0
Labels: leveldb

Issue Links:
Relates

 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



 Comments   
Comment by Sergei Petrunia [ 2013-01-14 ]

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.

Generated at Thu Feb 08 06:53:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.