Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
915afddb
Commit
915afddb
authored
May 24, 2022
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main.alter_table_lock could fail with query "'LOCK TABLE t1 WRITE' failed"
Backported fix from MariaDB 10.5
parent
ddb1f7c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mysql-test/main/alter_table_lock.result
mysql-test/main/alter_table_lock.result
+0
-2
mysql-test/main/alter_table_lock.test
mysql-test/main/alter_table_lock.test
+4
-0
No files found.
mysql-test/main/alter_table_lock.result
View file @
915afddb
...
...
@@ -11,8 +11,6 @@ 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;
...
...
mysql-test/main/alter_table_lock.test
View file @
915afddb
...
...
@@ -14,9 +14,13 @@ SELECT * FROM t1;
ALTER
TABLE
x
MODIFY
xx
INT
;
SET
SESSION
max_session_mem_used
=
8192
;
--
error
0
,
ER_OPTION_PREVENTS_STATEMENT
LOCK
TABLE
t1
WRITE
;
--
disable_warnings
--
error
0
,
ER_OPTION_PREVENTS_STATEMENT
ALTER
TABLE
t1
CHANGE
COLUMN
IF
EXISTS
b
c
INT
;
--
enable_warnings
SET
SESSION
max_session_mem_used
=
@
max_session_mem_used_save
;
UNLOCK
TABLES
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment