-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
104 additions
and
46 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# MDEV-23836: Assertion `! is_set() || m_can_overwrite_status' in | ||
# Diagnostics_area::set_error_status (interrupted ALTER TABLE under LOCK) | ||
# | ||
SET @max_session_mem_used_save= @@max_session_mem_used; | ||
CREATE TABLE t1 (a INT); | ||
SELECT * FROM t1; | ||
a | ||
ALTER TABLE x MODIFY xx INT; | ||
ERROR 42S02: Table 'test.x' doesn't exist | ||
SET SESSION max_session_mem_used= 8192; | ||
LOCK TABLE t1 WRITE; | ||
ALTER TABLE t1 CHANGE COLUMN IF EXISTS b c INT; | ||
Warnings: | ||
Note 1054 Unknown column 'b' in 't1' | ||
SET SESSION max_session_mem_used = @max_session_mem_used_save; | ||
UNLOCK TABLES; | ||
DROP TABLE t1; | ||
# End of 10.5 tests |
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,25 @@ | ||
--source include/not_msan.inc | ||
|
||
--echo # | ||
--echo # MDEV-23836: Assertion `! is_set() || m_can_overwrite_status' in | ||
--echo # Diagnostics_area::set_error_status (interrupted ALTER TABLE under LOCK) | ||
--echo # | ||
|
||
SET @max_session_mem_used_save= @@max_session_mem_used; | ||
|
||
CREATE TABLE t1 (a INT); | ||
SELECT * FROM t1; | ||
|
||
--error ER_NO_SUCH_TABLE | ||
ALTER TABLE x MODIFY xx INT; | ||
|
||
SET SESSION max_session_mem_used= 8192; | ||
LOCK TABLE t1 WRITE; | ||
|
||
ALTER TABLE t1 CHANGE COLUMN IF EXISTS b c INT; | ||
|
||
SET SESSION max_session_mem_used = @max_session_mem_used_save; | ||
UNLOCK TABLES; | ||
DROP TABLE t1; | ||
|
||
--echo # End of 10.5 tests |
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
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
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
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