diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-11-13 17:53:16 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-08-01 09:52:57 +0200 |
commit | 60343871a73220e2a44d1cebb36e4d109c52c11c (patch) | |
tree | 667e0a015606cfec75817628c33d681311500d7b /mysql-test | |
parent | 3d2067460eb028666f40021a371f9b2cbfd2ce9b (diff) | |
download | mariadb-git-60343871a73220e2a44d1cebb36e4d109c52c11c.tar.gz |
MDEV-8453 Alter table not returning engine errors
remove ~15 years old print_lock_error() function, use
handler::print_error() instead
Backport from 10.1
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/engine_error_in_alter-8453.result | 6 | ||||
-rw-r--r-- | mysql-test/t/engine_error_in_alter-8453.test | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/r/engine_error_in_alter-8453.result b/mysql-test/r/engine_error_in_alter-8453.result new file mode 100644 index 00000000000..c5a3375f33c --- /dev/null +++ b/mysql-test/r/engine_error_in_alter-8453.result @@ -0,0 +1,6 @@ +create table t1 (a int, b int); +set debug_dbug='+d,external_lock_failure'; +alter table t1 add column c int; +ERROR HY000: Got error 168 'KABOOM!' from MyISAM +set debug_dbug=''; +drop table t1; diff --git a/mysql-test/t/engine_error_in_alter-8453.test b/mysql-test/t/engine_error_in_alter-8453.test new file mode 100644 index 00000000000..c4600ec07fe --- /dev/null +++ b/mysql-test/t/engine_error_in_alter-8453.test @@ -0,0 +1,11 @@ +# +# MDEV-8453 Alter table not returning engine errors +# +--source include/have_debug.inc + +create table t1 (a int, b int); +set debug_dbug='+d,external_lock_failure'; +--error ER_GET_ERRMSG +alter table t1 add column c int; +set debug_dbug=''; +drop table t1; |