Below is the list of changes that have just been committed into a local
5.1-falcon repository of hakan. When hakan does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-04-21 16:55:16+02:00, hakank@stripped +2 -0
falcon_bug_27997.test is failing.
mysql-test/r/falcon_bug_27997.result@stripped, 2007-04-21 16:55:13+02:00, hakank@stripped +18 -0
New BitKeeper file ``mysql-test/r/falcon_bug_27997.result''
mysql-test/r/falcon_bug_27997.result@stripped, 2007-04-21 16:55:13+02:00, hakank@stripped +0 -0
mysql-test/t/falcon_bug_27997.test@stripped, 2007-04-21 16:55:13+02:00, hakank@stripped +37 -0
New BitKeeper file ``mysql-test/t/falcon_bug_27997.test''
mysql-test/t/falcon_bug_27997.test@stripped, 2007-04-21 16:55:13+02:00, hakank@stripped +0 -0
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: hakank
# Host: lu0011.wdf.sap.corp
# Root: /home/hakan/work/mysql/mysql-5.1-falcon
--- New file ---
+++ mysql-test/r/falcon_bug_27997.result 07/04/21 16:55:13
*** Bug #27997 ***
SET @@storage_engine = 'Falcon';
DROP TABLE IF EXISTS t1;
SET @@autocommit = 0;
CREATE TABLE t1 (a int, b int);
CREATE UNIQUE INDEX i1 on t1 (a, b);
INSERT INTO t1 VALUES (5, NULL), (5, NULL);
COMMIT;
SELECT * FROM t1 FOR UPDATE;
a b
5 NULL
5 NULL
UPDATE t1 SET b = 2;
ERROR 23000: Duplicate entry '5-2' for key 'i1'
SELECT count(*) FROM t1;
count(*)
2
DROP TABLE t1;
--- New file ---
+++ mysql-test/t/falcon_bug_27997.test 07/04/21 16:55:13
#
# Bug #27997: Falcon: unique violation after select for update
#
--echo *** Bug #27997 ***
# ----------------------------------------------------- #
# --- Initialisation --- #
# ----------------------------------------------------- #
let $engine = 'Falcon';
eval SET @@storage_engine = $engine;
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
SET @@autocommit = 0;
CREATE TABLE t1 (a int, b int);
CREATE UNIQUE INDEX i1 on t1 (a, b);
# ----------------------------------------------------- #
# --- Test --- #
# ----------------------------------------------------- #
INSERT INTO t1 VALUES (5, NULL), (5, NULL);
COMMIT;
SELECT * FROM t1 FOR UPDATE;
--error 1582
UPDATE t1 SET b = 2;
# ----------------------------------------------------- #
# --- Check --- #
# ----------------------------------------------------- #
SELECT count(*) FROM t1;
# ----------------------------------------------------- #
# --- Final cleanup --- #
# ----------------------------------------------------- #
DROP TABLE t1;
| Thread |
|---|
| • bk commit into 5.1-falcon tree (hakank:1.2635) | Hakan Kuecuekyilmaz | 21 Apr |