Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
4 changed files
with
24 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters