diff options
author | unknown <guilhem@mysql.com> | 2004-12-17 23:37:43 +0100 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2004-12-17 23:37:43 +0100 |
commit | 9a202517f562adc467e0b461d898bbcd6edee77a (patch) | |
tree | 8a256197b8e41258a503818037f6889352be28c1 /mysql-test/t/flush_block_commit.test | |
parent | 8d9badb36e2bccd7f5e249235e05a1c653259391 (diff) | |
download | mariadb-git-9a202517f562adc467e0b461d898bbcd6edee77a.tar.gz |
Fix for BUG#7358: removing warning reporting of mysqldump 4.1.8 when calling SHOW CREATE DATABASE, as we deal almost gracefully with it
(back to behaviour of 4.1.7). Warning was not fatal: mysqldump continued. And the good thing is that it helped spot that starting from 4.1.7,
SHOW CREATE DATABASE failed (if --single-transaction and first db has non-empty InnoDB table and there is a second db) and thus mysqldump
produced CREATE DATABASE statements missing the CHARACTER SET clause. Removing the bug which was in the server, and the warning reporting in
mysqldump (compatibility with old servers).
client/mysqldump.c:
don't report errors as we deal almost gracefully with them (back to code of 4.1.7)
mysql-test/r/flush_block_commit.result:
result update
mysql-test/t/flush_block_commit.test:
let's verify that SHOW CREATE DATABASE succeeds even if connection has open transaction.
sql/sql_parse.cc:
There is no reason to forbid SHOW CREATE DATABASE if connection has an open transaction
Diffstat (limited to 'mysql-test/t/flush_block_commit.test')
-rw-r--r-- | mysql-test/t/flush_block_commit.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/flush_block_commit.test b/mysql-test/t/flush_block_commit.test index ac14b7b98bc..87715452089 100644 --- a/mysql-test/t/flush_block_commit.test +++ b/mysql-test/t/flush_block_commit.test @@ -1,6 +1,7 @@ # Let's see if FLUSH TABLES WITH READ LOCK blocks COMMIT of existing # transactions. # We verify that we did not introduce a deadlock. +# This is intended to mimick how mysqldump and innobackup work. -- source include/have_innodb.inc @@ -63,4 +64,11 @@ unlock tables; connection con2; flush tables with read lock; # bug caused hang here unlock tables; + +# BUG#7358 SHOW CREATE DATABASE fails if open transaction + +begin; +select * from t1; +show create database test; + drop table t1; |