Wlad,
ok to push, only one cosmetic thing at the end of your changeset.
Elegant solution to the problem, btw.
On Di, 2008-04-22 at 12:54 +0000, vvaintroub@stripped wrote:
> Below is the list of changes that have just been committed into a local
> 6.0 repository of vvaintroub. When vvaintroub 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, 2008-04-22 12:54:14+02:00, vvaintroub@wva. +3 -0
> Bug#36249 : correct timing dependency in test case
> Also, comment out tests that will not be fixed in the long run.
>
> mysql-test/suite/falcon/r/falcon_bug_22183.result@stripped, 2008-04-22 12:54:11+02:00,
> vvaintroub@wva. +5 -2
> Correct timing dependency bug in the test case
>
> mysql-test/suite/falcon/t/falcon_bug_22183.test@stripped, 2008-04-22 12:54:12+02:00,
> vvaintroub@wva. +13 -4
> Bug#36249
>
> Correct bug (timing dependency) in test case:
>
> "Alter table" does implicit autocommit, therefore if another
> transaction is doing an update in parallel ,
> the reponse code in alter is dependent on timing.
>
> Fix: do explicit commit before alter table
>
> mysql-test/suite/falcon_team/t/disabled.def@stripped, 2008-04-21 23:11:25+02:00,
> vvaintroub@wva. +3 -0
> Comment out tests that will not be fixed for *long* time.
>
> diff -Nrup a/mysql-test/suite/falcon/r/falcon_bug_22183.result
> b/mysql-test/suite/falcon/r/falcon_bug_22183.result
> --- a/mysql-test/suite/falcon/r/falcon_bug_22183.result 2007-09-20 17:43:00 +02:00
> +++ b/mysql-test/suite/falcon/r/falcon_bug_22183.result 2008-04-22 12:54:11 +02:00
> @@ -15,11 +15,14 @@ SET @@autocommit = 0;
> START TRANSACTION;
> INSERT INTO t VALUES (3,'b','b');
> # Switch to connection default
> -ALTER TABLE t ADD PRIMARY KEY (s1);
> -ERROR 42000: Multiple primary key defined
> COMMIT;
> # Switch to connection conn1
> ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
> +COMMIT;
> +# Switch to connection default
> +START TRANSACTION;
> +ALTER TABLE t ADD PRIMARY KEY (s1);
> +ERROR 42000: Multiple primary key defined
> COMMIT;
> ALTER TABLE t DROP PRIMARY KEY;
> # Switch to connection default
> diff -Nrup a/mysql-test/suite/falcon/t/falcon_bug_22183.test
> b/mysql-test/suite/falcon/t/falcon_bug_22183.test
> --- a/mysql-test/suite/falcon/t/falcon_bug_22183.test 2007-10-05 14:21:26 +02:00
> +++ b/mysql-test/suite/falcon/t/falcon_bug_22183.test 2008-04-22 12:54:12 +02:00
> @@ -29,10 +29,6 @@ START TRANSACTION;
>
> --echo # Switch to connection default
> connection default;
> -# We get a "multiple primary key defined", as the previous
> -# DROP PRIMARY KEY did not worked.
> ---error ER_MULTIPLE_PRI_KEY
> -ALTER TABLE t ADD PRIMARY KEY (s1);
> COMMIT;
>
> --echo # Switch to connection conn1
> @@ -40,6 +36,19 @@ connection conn1;
> --error ER_DUP_ENTRY
> --reap
> COMMIT;
> +
> +
> +# We get a "multiple primary key defined", as the previous
> +# DROP PRIMARY KEY did not worked.
> +--echo # Switch to connection default
> +connection default;
> +START TRANSACTION;
> +--error ER_MULTIPLE_PRI_KEY
> +ALTER TABLE t ADD PRIMARY KEY (s1);
> +COMMIT;
> +
> +
> +connection conn1;
> ALTER TABLE t DROP PRIMARY KEY;
>
> --echo # Switch to connection default
> diff -Nrup a/mysql-test/suite/falcon_team/t/disabled.def
> b/mysql-test/suite/falcon_team/t/disabled.def
> --- a/mysql-test/suite/falcon_team/t/disabled.def 2008-04-21 14:19:12 +02:00
> +++ b/mysql-test/suite/falcon_team/t/disabled.def 2008-04-21 23:11:25 +02:00
> @@ -17,3 +17,6 @@
> # Also please keep the list sorted.
>
> #falcon_bug_23945 : Bug#34892 2008-02-27 hakank Open bug
Please remove my dummy line!
> +falcon_bug_22166 : Bug#22166 tests for case-sensitive identifiers.Will probably
> never be fixed (besides , can never run on case-insensitive filesystems) 2008-04-21
> vvaintroub
> +falcon_bug_22187 : Bug#22187 Tests for foreign key.Useless without FK
> implementation 2008-04-21 vvaintroub
> +
>
Best regards,
Hakan
--
Hakan Küçükyılmaz, Senior Software Engineer
MySQL AB, http://www.mysql.com/
Office: +49 160 98953296
Hauptsitz: MySQL GmbH, Dachauer Str. 37, D-80335 München
Geschäftsführer: Kaj Arnö - HRB München 162140