Can insert DUPLICATE keys in UNIQUE index when using RECORD_VERSION
-------------------------------------------------------------------
Key: CORE-3610
URL: http://tracker.firebirdsql.org/browse/CORE-3610
Project: Firebird Core
Issue Type: Bug
Reporter: Pavel Zotov
Priority: Critical
Server version:
WI-V2.5.1.26353 Firebird 2.5
---------------------------------------
SQL> create database "testz.fdb" pagesize 2048;
SQL> commit;
SQL> connect testz.fdb;
Database: testz.fdb
---------------------------------------
-- SESSION #1:
recreate table t(id int not null, f01 int, constraint t_pk primary key(id),
constraint t_unq unique(f01));
commit;
insert into t values(1, 1 );
insert into t values(2,null);
insert into t values(3,null);
commit;
update t set f01=null where id=1; -- <<<<<<<<<<<<< SET UNIQUE FIELD TO NULL
<<<<<<<
-- SESSION #2:
commit; set transaction read committed record_version no wait; update t set
f01=1 where id=3;
-- SESSION #1:
ROLLBACK;
-- SESSION #2:
COMMIT; -- PASSED! NO MESSAGES ABOUT VIOLATION OF UNIQUE INDEX!
-- SESSION #1:
SQL> select * from t;
ID F01
============ ============
1 1
2 <null>
3 1
-- SESSION #2:
SQL> select * from t;
ID F01
============ ============
1 1
2 <null>
3 1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel