Commit 447cd7b1 authored by Marko Mäkelä's avatar Marko Mäkelä

Test MDL with a more generic ALTER TABLE statement

parent ab63290c
......@@ -1656,8 +1656,8 @@ static void check_mdl_lock_works(const char *table_name)
MYSQL *test_con= xb_mysql_connect();
char *query;
xb_a(asprintf(&query,
"SET STATEMENT max_statement_time=1 FOR ALTER TABLE %s"
" ADD COLUMN mdl_lock_column int", table_name));
"SET STATEMENT max_statement_time=1 FOR ALTER TABLE %s FORCE",
table_name));
int err = mysql_query(test_con, query);
DBUG_ASSERT(err);
int err_no = mysql_errno(test_con);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment