You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bulk and scalar versions of mkey.rotate_xor_hash differ for types whose ATOMstorage type is different from the type itself and equal to one of the numeric types.
This has dire consequences for SQL since the function is used in the calculation and maintenance of the index column for multi-column primary keys. It is easy to construct a table with duplicate primary keys:
create table x ( a clob, b clob, c timestamp);
alter table x add primary key (a,b,c);
create table y ( a clob, b clob, c timestamp);
insert into y values ('FIAM','HHZ', '2010-04-25T14:00:00.000');
insert into x (select * from y);
-- this query should fail but doesn't:
insert into x values ('FIAM','HHZ', '2010-04-25T14:00:00.000');
Comment 20249
Date: 2014-10-04 23:27:33 +0200
From: @mlkersten
Added the test duplicate_primary_keys.Bug-3474.sql
Date: 2014-04-14 17:37:50 +0200
From: @sjoerdmullender
To: SQL devs <>
Version: 11.17.13 (Jan2014-SP1)
CC: @mlkersten, @njnes
Last updated: 2014-10-31 14:13:51 +0100
Comment 19752
Date: 2014-04-14 17:37:50 +0200
From: @sjoerdmullender
The bulk and scalar versions of mkey.rotate_xor_hash differ for types whose ATOMstorage type is different from the type itself and equal to one of the numeric types.
This has dire consequences for SQL since the function is used in the calculation and maintenance of the index column for multi-column primary keys. It is easy to construct a table with duplicate primary keys:
create table x ( a clob, b clob, c timestamp);
alter table x add primary key (a,b,c);
create table y ( a clob, b clob, c timestamp);
insert into y values ('FIAM','HHZ', '2010-04-25T14:00:00.000');
insert into x (select * from y);
-- this query should fail but doesn't:
insert into x values ('FIAM','HHZ', '2010-04-25T14:00:00.000');
Comment 20249
Date: 2014-10-04 23:27:33 +0200
From: @mlkersten
Added the test duplicate_primary_keys.Bug-3474.sql
Comment 20265
Date: 2014-10-08 15:01:40 +0200
From: MonetDB Mercurial Repository <>
Changeset 362c555dffad made by Niels Nes niels@cwi.nl in the MonetDB repo, refers to this bug.
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=362c555dffad
Changeset description:
Comment 20269
Date: 2014-10-08 16:10:27 +0200
From: @njnes
todo - upgrade indices (dump restore or recreate indices/keys which include types such as date, timestamp etc)
Comment 20291
Date: 2014-10-14 17:37:52 +0200
From: MonetDB Mercurial Repository <>
Changeset 56c438d0b5e4 made by Sjoerd Mullender sjoerd@acm.org in the MonetDB repo, refers to this bug.
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=56c438d0b5e4
Changeset description:
Comment 20340
Date: 2014-10-31 14:13:51 +0100
From: @sjoerdmullender
Oct2014 has been released.
The text was updated successfully, but these errors were encountered: