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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
5c31e79f
Commit
5c31e79f
authored
Mar 15, 2014
by
Elena Stepanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create_or_replace test failed with embedded-server due to different
thread IDs
parent
365ba070
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
18 deletions
+24
-18
mysql-test/r/create_or_replace.result
mysql-test/r/create_or_replace.result
+18
-18
mysql-test/t/create_or_replace.test
mysql-test/t/create_or_replace.test
+6
-0
No files found.
mysql-test/r/create_or_replace.result
View file @
5c31e79f
...
@@ -259,11 +259,11 @@ create table mysqltest2.t2 like test.t1;
...
@@ -259,11 +259,11 @@ create table mysqltest2.t2 like test.t1;
lock table test.t1 write, mysqltest2.t2 write;
lock table test.t1 write, mysqltest2.t2 write;
select * from information_schema.metadata_lock_info;
select * from information_schema.metadata_lock_info;
THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
3
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Global read lock
#
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Global read lock
3
MDL_SHARED_NO_READ_WRITE MDL_EXPLICIT Table metadata lock test t1
#
MDL_SHARED_NO_READ_WRITE MDL_EXPLICIT Table metadata lock test t1
3
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock mysqltest2
#
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock mysqltest2
3
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock test
#
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock test
3
MDL_SHARED_NO_READ_WRITE MDL_EXPLICIT Table metadata lock mysqltest2 t2
#
MDL_SHARED_NO_READ_WRITE MDL_EXPLICIT Table metadata lock mysqltest2 t2
create or replace table test.t1;
create or replace table test.t1;
ERROR 42000: A table must have at least 1 column
ERROR 42000: A table must have at least 1 column
show tables;
show tables;
...
@@ -271,10 +271,10 @@ Tables_in_test
...
@@ -271,10 +271,10 @@ Tables_in_test
t2
t2
select * from information_schema.metadata_lock_info;
select * from information_schema.metadata_lock_info;
THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
3
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Global read lock
#
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Global read lock
3
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock mysqltest2
#
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock mysqltest2
3
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock test
#
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock test
3
MDL_SHARED_NO_READ_WRITE MDL_EXPLICIT Table metadata lock mysqltest2 t2
#
MDL_SHARED_NO_READ_WRITE MDL_EXPLICIT Table metadata lock mysqltest2 t2
create or replace table mysqltest2.t2;
create or replace table mysqltest2.t2;
ERROR 42000: A table must have at least 1 column
ERROR 42000: A table must have at least 1 column
select * from information_schema.metadata_lock_info;
select * from information_schema.metadata_lock_info;
...
@@ -286,11 +286,11 @@ create table mysqltest2.t2 like test.t1;
...
@@ -286,11 +286,11 @@ create table mysqltest2.t2 like test.t1;
lock table test.t1 write, mysqltest2.t2 write;
lock table test.t1 write, mysqltest2.t2 write;
select * from information_schema.metadata_lock_info;
select * from information_schema.metadata_lock_info;
THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
3
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Global read lock
#
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Global read lock
3
MDL_SHARED_NO_READ_WRITE MDL_EXPLICIT Table metadata lock test t1
#
MDL_SHARED_NO_READ_WRITE MDL_EXPLICIT Table metadata lock test t1
3
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock mysqltest2
#
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock mysqltest2
3
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock test
#
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock test
3
MDL_SHARED_NO_READ_WRITE MDL_EXPLICIT Table metadata lock mysqltest2 t2
#
MDL_SHARED_NO_READ_WRITE MDL_EXPLICIT Table metadata lock mysqltest2 t2
create or replace table test.t1 (a int) select 1 as 'a', 2 as 'a';
create or replace table test.t1 (a int) select 1 as 'a', 2 as 'a';
ERROR 42S21: Duplicate column name 'a'
ERROR 42S21: Duplicate column name 'a'
show tables;
show tables;
...
@@ -298,10 +298,10 @@ Tables_in_test
...
@@ -298,10 +298,10 @@ Tables_in_test
t2
t2
select * from information_schema.metadata_lock_info;
select * from information_schema.metadata_lock_info;
THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
THREAD_ID LOCK_MODE LOCK_DURATION LOCK_TYPE TABLE_SCHEMA TABLE_NAME
3
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Global read lock
#
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Global read lock
3
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock mysqltest2
#
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock mysqltest2
3
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock test
#
MDL_INTENTION_EXCLUSIVE MDL_EXPLICIT Schema metadata lock test
3
MDL_SHARED_NO_READ_WRITE MDL_EXPLICIT Table metadata lock mysqltest2 t2
#
MDL_SHARED_NO_READ_WRITE MDL_EXPLICIT Table metadata lock mysqltest2 t2
create or replace table mysqltest2.t2 (a int) select 1 as 'a', 2 as 'a';
create or replace table mysqltest2.t2 (a int) select 1 as 'a', 2 as 'a';
ERROR 42S21: Duplicate column name 'a'
ERROR 42S21: Duplicate column name 'a'
select * from information_schema.metadata_lock_info;
select * from information_schema.metadata_lock_info;
...
...
mysql-test/t/create_or_replace.test
View file @
5c31e79f
...
@@ -212,13 +212,16 @@ drop table if exists test.t1,mysqltest2.t2;
...
@@ -212,13 +212,16 @@ drop table if exists test.t1,mysqltest2.t2;
create
table
test
.
t1
(
i
int
);
create
table
test
.
t1
(
i
int
);
create
table
mysqltest2
.
t2
like
test
.
t1
;
create
table
mysqltest2
.
t2
like
test
.
t1
;
lock
table
test
.
t1
write
,
mysqltest2
.
t2
write
;
lock
table
test
.
t1
write
,
mysqltest2
.
t2
write
;
--
replace_column
1
#
select
*
from
information_schema
.
metadata_lock_info
;
select
*
from
information_schema
.
metadata_lock_info
;
--
error
ER_TABLE_MUST_HAVE_COLUMNS
--
error
ER_TABLE_MUST_HAVE_COLUMNS
create
or
replace
table
test
.
t1
;
create
or
replace
table
test
.
t1
;
show
tables
;
show
tables
;
--
replace_column
1
#
select
*
from
information_schema
.
metadata_lock_info
;
select
*
from
information_schema
.
metadata_lock_info
;
--
error
ER_TABLE_MUST_HAVE_COLUMNS
--
error
ER_TABLE_MUST_HAVE_COLUMNS
create
or
replace
table
mysqltest2
.
t2
;
create
or
replace
table
mysqltest2
.
t2
;
--
replace_column
1
#
select
*
from
information_schema
.
metadata_lock_info
;
select
*
from
information_schema
.
metadata_lock_info
;
create
table
t1
(
i
int
);
create
table
t1
(
i
int
);
drop
table
t1
;
drop
table
t1
;
...
@@ -226,13 +229,16 @@ drop table t1;
...
@@ -226,13 +229,16 @@ drop table t1;
create
table
test
.
t1
(
i
int
);
create
table
test
.
t1
(
i
int
);
create
table
mysqltest2
.
t2
like
test
.
t1
;
create
table
mysqltest2
.
t2
like
test
.
t1
;
lock
table
test
.
t1
write
,
mysqltest2
.
t2
write
;
lock
table
test
.
t1
write
,
mysqltest2
.
t2
write
;
--
replace_column
1
#
select
*
from
information_schema
.
metadata_lock_info
;
select
*
from
information_schema
.
metadata_lock_info
;
--
error
ER_DUP_FIELDNAME
--
error
ER_DUP_FIELDNAME
create
or
replace
table
test
.
t1
(
a
int
)
select
1
as
'a'
,
2
as
'a'
;
create
or
replace
table
test
.
t1
(
a
int
)
select
1
as
'a'
,
2
as
'a'
;
show
tables
;
show
tables
;
--
replace_column
1
#
select
*
from
information_schema
.
metadata_lock_info
;
select
*
from
information_schema
.
metadata_lock_info
;
--
error
ER_DUP_FIELDNAME
--
error
ER_DUP_FIELDNAME
create
or
replace
table
mysqltest2
.
t2
(
a
int
)
select
1
as
'a'
,
2
as
'a'
;
create
or
replace
table
mysqltest2
.
t2
(
a
int
)
select
1
as
'a'
,
2
as
'a'
;
--
replace_column
1
#
select
*
from
information_schema
.
metadata_lock_info
;
select
*
from
information_schema
.
metadata_lock_info
;
create
table
t1
(
i
int
);
create
table
t1
(
i
int
);
drop
table
t1
;
drop
table
t1
;
...
...
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