Re: Partitioning causes duplicate key error
Posted by:
fz wsc
Date: May 27, 2006 03:15AM
Maybe I'm also hitting this bug, hope 5.1.10 can be released ASAP.
mysql> CREATE TABLE `t1` (
-> `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-> `p1` varchar(50) NOT NULL,
-> PRIMARY KEY (`id`,`p1`)
-> ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1
-> COLLATE utf8_general_ci
-> PARTITION BY LINEAR KEY(`p1`)
-> PARTITIONS 4;
Query OK, 0 rows affected (0.20 sec)
mysql> insert into t1 values(NULL,'abc');
Query OK, 1 row affected (0.00 sec)
mysql> insert into t1 values(NULL,'abc');
ERROR 1022 (23000): Can't write; duplicate key in table 't1'
mysql>
Subject
Views
Written By
Posted
5813
May 23, 2006 09:32AM
2587
May 24, 2006 05:06AM
2538
May 24, 2006 09:23AM
Re: Partitioning causes duplicate key error
3080
May 27, 2006 03:15AM
2442
May 27, 2006 03:32AM
2559
May 27, 2006 03:47AM
2724
May 27, 2006 08:06AM
2327
May 28, 2006 03:04AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.