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
ddd8e45b
Commit
ddd8e45b
authored
Mar 04, 2009
by
Bernt M. Johnsen
Browse files
Options
Browse Files
Download
Plain Diff
Bug 43258 merged from gca
parents
47a071d7
3064b924
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
34 deletions
+91
-34
mysql-test/t/ddl_i18n_koi8r.test
mysql-test/t/ddl_i18n_koi8r.test
+36
-14
mysql-test/t/ddl_i18n_utf8.test
mysql-test/t/ddl_i18n_utf8.test
+36
-14
mysql-test/t/drop.test
mysql-test/t/drop.test
+19
-6
No files found.
mysql-test/t/ddl_i18n_koi8r.test
View file @
ddd8e45b
...
...
@@ -143,10 +143,12 @@ set names koi8r|
# - Dump mysqltest1;
--
let
$views_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
views
.
mysqltest1
.
sql
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_koi8r
.
views
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
views
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
databases
mysqltest1
>
$
views_dump1
# - Clean mysqltest1;
...
...
@@ -161,7 +163,9 @@ DROP DATABASE mysqltest1|
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
views
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$views_dump1
--
remove_file
$views_dump1
#
# Third-round checks.
...
...
@@ -398,6 +402,9 @@ set names koi8r|
# - Dump mysqltest1, mysqltest2;
--
let
$sp_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
sp
.
mysqltest1
.
sql
--
let
$sp_dump2
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
sp
.
mysqltest2
.
sql
--
echo
--
echo
--->
Dump
of
mysqltest1
...
...
@@ -406,7 +413,7 @@ set names koi8r|
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_koi8r
.
sp
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
sp
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest1
>
$
sp_dump1
--
echo
--
echo
--->
Dump
of
mysqltest2
...
...
@@ -416,7 +423,7 @@ set names koi8r|
--
echo
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_koi8r
.
sp
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest2
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
sp
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest2
>
$
sp_dump2
# - Clean mysqltest1, mysqltest2;
...
...
@@ -432,10 +439,13 @@ DROP DATABASE mysqltest2|
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
sp
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$
sp_dump1
--
echo
--->
Restoring
mysqltest2
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
sp
.
mysqltest2
.
sql
--
exec
$MYSQL
test
<
$sp_dump2
--
remove_file
$sp_dump1
--
remove_file
$sp_dump2
#
# Third-round checks.
...
...
@@ -669,6 +679,9 @@ use mysqltest1|
# - Dump mysqltest1, mysqltest2
;
--
let
$triggers_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
triggers
.
mysqltest1
.
sql
--
let
$triggers_dump2
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
triggers
.
mysqltest2
.
sql
--
echo
--
echo
--->
Dump
of
mysqltest1
...
...
@@ -677,7 +690,7 @@ use mysqltest1|
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_koi8r
.
triggers
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
triggers
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest1
>
$
triggers_dump1
--
echo
--
echo
--->
Dump
of
mysqltest2
...
...
@@ -687,7 +700,7 @@ use mysqltest1|
--
echo
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_koi8r
.
triggers
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest2
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
triggers
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest2
>
$
triggers_dump2
# - Clean mysqltest1, mysqltest2;
...
...
@@ -703,10 +716,13 @@ DROP DATABASE mysqltest2|
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
triggers
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$
triggers_dump1
--
echo
--->
Restoring
mysqltest2
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
triggers
.
mysqltest2
.
sql
--
exec
$MYSQL
test
<
$triggers_dump2
--
remove_file
$triggers_dump1
--
remove_file
$triggers_dump2
#
# Third-round checks.
...
...
@@ -924,6 +940,9 @@ set names koi8r|
# - Dump mysqltest1, mysqltest2;
--
let
$events_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
events
.
mysqltest1
.
sql
--
let
$events_dump2
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
events
.
mysqltest2
.
sql
--
echo
--
echo
--->
Dump
of
mysqltest1
...
...
@@ -932,7 +951,7 @@ set names koi8r|
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_koi8r
.
events
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
events
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest1
>
$
events_dump1
--
echo
--
echo
--->
Dump
of
mysqltest2
...
...
@@ -942,7 +961,7 @@ set names koi8r|
--
echo
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_koi8r
.
events
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest2
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
events
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest2
>
$
events_dump2
# - Clean mysqltest1, mysqltest2;
...
...
@@ -958,10 +977,13 @@ DROP DATABASE mysqltest2|
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
events
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$
events_dump1
--
echo
--->
Restoring
mysqltest2
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
events
.
mysqltest2
.
sql
--
exec
$MYSQL
test
<
$events_dump2
--
remove_file
$events_dump1
--
remove_file
$events_dump2
#
# Third-round checks.
...
...
mysql-test/t/ddl_i18n_utf8.test
View file @
ddd8e45b
...
...
@@ -143,10 +143,12 @@ set names utf8|
# - Dump mysqltest1;
--
let
$views_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8views
.
mysqltest1
.
sql
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_utf8views
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8views
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
databases
mysqltest1
>
$
views_dump1
# - Clean mysqltest1;
...
...
@@ -161,7 +163,9 @@ DROP DATABASE mysqltest1|
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8views
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$views_dump1
--
remove_file
$views_dump1
#
# Third-round checks.
...
...
@@ -398,6 +402,9 @@ set names utf8|
# - Dump mysqltest1, mysqltest2;
--
let
$sp_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8sp
.
mysqltest1
.
sql
--
let
$sp_dump2
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8sp
.
mysqltest2
.
sql
--
echo
--
echo
--->
Dump
of
mysqltest1
...
...
@@ -406,7 +413,7 @@ set names utf8|
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_utf8sp
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8sp
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest1
>
$
sp_dump1
--
echo
--
echo
--->
Dump
of
mysqltest2
...
...
@@ -416,7 +423,7 @@ set names utf8|
--
echo
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_utf8sp
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest2
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8sp
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest2
>
$
sp_dump2
# - Clean mysqltest1, mysqltest2;
...
...
@@ -432,10 +439,13 @@ DROP DATABASE mysqltest2|
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8sp
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$
sp_dump1
--
echo
--->
Restoring
mysqltest2
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8sp
.
mysqltest2
.
sql
--
exec
$MYSQL
test
<
$sp_dump2
--
remove_file
$sp_dump1
--
remove_file
$sp_dump2
#
# Third-round checks.
...
...
@@ -669,6 +679,9 @@ use mysqltest1|
# - Dump mysqltest1, mysqltest2
;
--
let
$triggers_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8triggers
.
mysqltest1
.
sql
--
let
$triggers_dump2
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8triggers
.
mysqltest2
.
sql
--
echo
--
echo
--->
Dump
of
mysqltest1
...
...
@@ -677,7 +690,7 @@ use mysqltest1|
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_utf8triggers
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8triggers
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest1
>
$
triggers_dump1
--
echo
--
echo
--->
Dump
of
mysqltest2
...
...
@@ -687,7 +700,7 @@ use mysqltest1|
--
echo
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_utf8triggers
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest2
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8triggers
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest2
>
$
triggers_dump2
# - Clean mysqltest1, mysqltest2;
...
...
@@ -703,10 +716,13 @@ DROP DATABASE mysqltest2|
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8triggers
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$
triggers_dump1
--
echo
--->
Restoring
mysqltest2
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8triggers
.
mysqltest2
.
sql
--
exec
$MYSQL
test
<
$triggers_dump2
--
remove_file
$triggers_dump1
--
remove_file
$triggers_dump2
#
# Third-round checks.
...
...
@@ -924,6 +940,9 @@ set names utf8|
# - Dump mysqltest1, mysqltest2;
--
let
$events_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8events
.
mysqltest1
.
sql
--
let
$events_dump2
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8events
.
mysqltest2
.
sql
--
echo
--
echo
--->
Dump
of
mysqltest1
...
...
@@ -932,7 +951,7 @@ set names utf8|
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_utf8events
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8events
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest1
>
$
events_dump1
--
echo
--
echo
--->
Dump
of
mysqltest2
...
...
@@ -942,7 +961,7 @@ set names utf8|
--
echo
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_utf8events
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest2
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8events
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest2
>
$
events_dump2
# - Clean mysqltest1, mysqltest2;
...
...
@@ -958,10 +977,13 @@ DROP DATABASE mysqltest2|
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8events
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$
events_dump1
--
echo
--->
Restoring
mysqltest2
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8events
.
mysqltest2
.
sql
--
exec
$MYSQL
test
<
$events_dump2
--
remove_file
$events_dump1
--
remove_file
$events_dump2
#
# Third-round checks.
...
...
mysql-test/t/drop.test
View file @
ddd8e45b
...
...
@@ -150,17 +150,30 @@ DROP DATABASE IF EXISTS mysql_test;
CREATE
DATABASE
mysql_test
;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
--
copy_file
$MYSQLD_DATADIR
/
mysql
/
proc
.
frm
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
proc
.
frm
--
copy_file
$MYSQLD_DATADIR
/
mysql
/
proc
.
MYD
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
proc
.
MYD
--
copy_file
$MYSQLD_DATADIR
/
mysql
/
proc
.
MYI
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
proc
.
MYI
--
let
$proc_frm
=
$MYSQLD_DATADIR
/
mysql
/
proc
.
frm
--
let
$proc_MYD
=
$MYSQLD_DATADIR
/
mysql
/
proc
.
MYD
--
let
$proc_MYI
=
$MYSQLD_DATADIR
/
mysql
/
proc
.
MYI
--
let
$copy_of_proc_frm
=
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
copy
.
frm
--
let
$copy_of_proc_MYD
=
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
copy
.
MYD
--
let
$copy_of_proc_MYI
=
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
copy
.
MYI
--
copy_file
$proc_frm
$copy_of_proc_frm
--
copy_file
$proc_MYD
$copy_of_proc_MYD
--
copy_file
$proc_MYI
$copy_of_proc_MYI
DROP
TABLE
mysql
.
proc
;
DROP
DATABASE
mysql_test
;
--
copy_file
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
proc
.
frm
$MYSQLD_DATADIR
/
mysql
/
proc
.
frm
--
copy_file
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
proc
.
MYD
$MYSQLD_DATADIR
/
mysql
/
proc
.
MYD
--
copy_file
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
proc
.
MYI
$MYSQLD_DATADIR
/
mysql
/
proc
.
MYI
--
copy_file
$copy_of_proc_frm
$proc_frm
--
copy_file
$copy_of_proc_MYD
$proc_MYD
--
copy_file
$copy_of_proc_MYI
$proc_MYI
--
remove_file
$copy_of_proc_frm
--
remove_file
$copy_of_proc_MYD
--
remove_file
$copy_of_proc_MYI
--
echo
--
echo
# --
...
...
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