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
938c61dc
Commit
938c61dc
authored
Dec 01, 2010
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Plain Diff
Merging from mysql-5.1-bugteam
parents
64c357d0
c8310653
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
25 deletions
+22
-25
mysql-test/r/mysql.result
mysql-test/r/mysql.result
+8
-10
mysql-test/t/mysql.test
mysql-test/t/mysql.test
+14
-15
No files found.
mysql-test/r/mysql.result
View file @
938c61dc
...
@@ -492,16 +492,14 @@ Tables_in_test
...
@@ -492,16 +492,14 @@ Tables_in_test
# Checking --one-database option with non_existent_db
# Checking --one-database option with non_existent_db
# specified with USE command
# specified with USE command
#
#
SHOW TABLES IN test
;
CREATE DATABASE connected_db
;
Tables_in_test
SHOW TABLES IN connected_db;
table_in_test
Tables_in_connected_db
DROP DATABASE test;
table_in_connected_db
CREATE DATABASE test;
SHOW TABLES IN connected_db;
SHOW TABLES IN test;
Tables_in_connected_db
Tables_in_test
table_in_connected_db
table_in_test
DROP DATABASE connected_db;
DROP DATABASE test;
CREATE DATABASE test;
End of tests
End of tests
mysql-test/t/mysql.test
View file @
938c61dc
...
@@ -536,35 +536,34 @@ SHOW TABLES IN test;
...
@@ -536,35 +536,34 @@ SHOW TABLES IN test;
--
echo
# specified with USE command
--
echo
# specified with USE command
--
echo
#
--
echo
#
# CASE 1 : When '
test
' database exists and passed at commandline.
# CASE 1 : When '
connected_db
' database exists and passed at commandline.
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
one_db_1
.
sql
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
one_db_1
.
sql
CREATE
TABLE
`table_in_
test
`
(
i
INT
);
CREATE
TABLE
`table_in_
connected_db
`
(
i
INT
);
USE
non_existent_db
;
USE
non_existent_db
;
# Following statement should be filtered out.
# Following statement should be filtered out.
CREATE
TABLE
`table_in_non_existent_db`
(
i
INT
);
CREATE
TABLE
`table_in_non_existent_db`
(
i
INT
);
EOF
EOF
# CASE 2 : When 'test' database exists but dropped and recreated in load file.
# CASE 2 : When 'connected_db' database exists but dropped and recreated in
# load file.
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
one_db_2
.
sql
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
one_db_2
.
sql
DROP
DATABASE
test
;
DROP
DATABASE
connected_db
;
CREATE
DATABASE
test
;
CREATE
DATABASE
connected_db
;
USE
non_existent_db
;
USE
non_existent_db
;
# Following statements should be filtered out.
# Following statements should be filtered out.
CREATE
TABLE
`table_in_non_existent_db`
(
i
INT
);
CREATE
TABLE
`table_in_non_existent_db`
(
i
INT
);
USE
test
;
USE
connected_db
;
# Following statements should not be filtered out.
# Following statements should not be filtered out.
CREATE
TABLE
`table_in_
test
`
(
i
INT
);
CREATE
TABLE
`table_in_
connected_db
`
(
i
INT
);
EOF
EOF
--
exec
$MYSQL
--
one
-
database
test
<
$MYSQLTEST_VARDIR
/
tmp
/
one_db_1
.
sql
CREATE
DATABASE
connected_db
;
SHOW
TABLES
IN
test
;
--
exec
$MYSQL
--
one
-
database
connected_db
<
$MYSQLTEST_VARDIR
/
tmp
/
one_db_1
.
sql
DROP
DATABASE
test
;
SHOW
TABLES
IN
connected_db
;
--
echo
--
echo
CREATE
DATABASE
test
;
--
exec
$MYSQL
--
one
-
database
connected_db
<
$MYSQLTEST_VARDIR
/
tmp
/
one_db_2
.
sql
--
exec
$MYSQL
--
one
-
database
test
<
$MYSQLTEST_VARDIR
/
tmp
/
one_db_2
.
sql
SHOW
TABLES
IN
connected_db
;
SHOW
TABLES
IN
test
;
DROP
DATABASE
connected_db
;
DROP
DATABASE
test
;
CREATE
DATABASE
test
;
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
one_db_1
.
sql
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
one_db_1
.
sql
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
one_db_2
.
sql
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
one_db_2
.
sql
...
...
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