mirror of
https://github.com/MariaDB/server.git
synced 2025-09-11 05:52:26 +03:00
ndb - bug#34118 - hash index trigger vs. disk
This commit is contained in:
@@ -501,6 +501,18 @@ f1 f2
|
||||
111111 aaaaaa
|
||||
222222 bbbbbb
|
||||
drop table test.t1;
|
||||
CREATE TABLE t1 (
|
||||
id int unsigned NOT NULL,
|
||||
c1 int unsigned NOT NULL,
|
||||
c2 int DEFAULT NULL,
|
||||
PRIMARY KEY using hash (id),
|
||||
UNIQUE KEY c1 using hash (c1))
|
||||
TABLESPACE ts1 STORAGE DISK ENGINE=ndbcluster;
|
||||
insert into t1 values(1, 1, 3);
|
||||
insert into t1 values(2, 2, 3);
|
||||
update t1 set c1 = 1 where id = 2;
|
||||
ERROR 23000: Duplicate entry '1' for key 'c1'
|
||||
drop table t1;
|
||||
ALTER TABLESPACE ts1
|
||||
DROP DATAFILE 'datafile.dat'
|
||||
ENGINE = NDB;
|
||||
|
@@ -439,6 +439,21 @@ select f2 from test.t1 order by f2;
|
||||
select f1,f2 from test.t1 order by f1;
|
||||
drop table test.t1;
|
||||
|
||||
# bug#34118 hash index trigger and do not update any disk attr
|
||||
CREATE TABLE t1 (
|
||||
id int unsigned NOT NULL,
|
||||
c1 int unsigned NOT NULL,
|
||||
c2 int DEFAULT NULL,
|
||||
PRIMARY KEY using hash (id),
|
||||
UNIQUE KEY c1 using hash (c1))
|
||||
TABLESPACE ts1 STORAGE DISK ENGINE=ndbcluster;
|
||||
|
||||
insert into t1 values(1, 1, 3);
|
||||
insert into t1 values(2, 2, 3);
|
||||
--error ER_DUP_ENTRY
|
||||
update t1 set c1 = 1 where id = 2;
|
||||
drop table t1;
|
||||
|
||||
###################
|
||||
# Test Cleanup
|
||||
###################
|
||||
|
Reference in New Issue
Block a user