Commit 9db357d4 authored by Alexander Barkov's avatar Alexander Barkov

Adding more option combinations into ctype_gbk_export_import.

parent d383a168
...@@ -603,6 +603,27 @@ file EE5C-EE5C5C ...@@ -603,6 +603,27 @@ file EE5C-EE5C5C
a 3F5C BAD-TEXT a 3F5C BAD-TEXT
b EE5C0A BAD-BLOB b EE5C0A BAD-BLOB
Locale: zh_CN.gbk
OUTFILE: --default-character-set=binary
INFILE: --default-character-set=binary
file EE5C-EE5C5C
a EE5C
b EE5C0A BAD-BLOB
Locale: zh_CN.gbk
OUTFILE: --default-character-set=binary
INFILE: --default-character-set=binary CHARACTER SET gbk
file EE5C-EE5C5C
a EE5C
b EE5C0A BAD-BLOB
Locale: zh_CN.gbk
OUTFILE: --default-character-set=binary
INFILE: --default-character-set=binary CHARACTER SET utf8
file EE5C-EE5C5C
a 3F5C BAD-TEXT
b EE5C0A BAD-BLOB
Locale: zh_CN.gbk Locale: zh_CN.gbk
OUTFILE: --default-character-set=binary OUTFILE: --default-character-set=binary
INFILE: --default-character-set=gbk INFILE: --default-character-set=gbk
...@@ -666,6 +687,27 @@ file EE5C-EE5C ...@@ -666,6 +687,27 @@ file EE5C-EE5C
a 3F5C BAD-TEXT a 3F5C BAD-TEXT
b EE5C b EE5C
Locale: zh_CN.gbk
OUTFILE: --default-character-set=gbk
INFILE: --default-character-set=binary
file EE5C-EE5C
a EE5C
b EE5C
Locale: zh_CN.gbk
OUTFILE: --default-character-set=gbk
INFILE: --default-character-set=binary CHARACTER SET gbk
file EE5C-EE5C
a EE5C
b EE5C
Locale: zh_CN.gbk
OUTFILE: --default-character-set=gbk
INFILE: --default-character-set=binary CHARACTER SET utf8
file EE5C-EE5C
a 3F5C BAD-TEXT
b EE5C
Locale: zh_CN.gbk Locale: zh_CN.gbk
OUTFILE: --default-character-set=gbk OUTFILE: --default-character-set=gbk
INFILE: --default-character-set=gbk INFILE: --default-character-set=gbk
...@@ -729,6 +771,27 @@ file E9A0AB-3F5C5C ...@@ -729,6 +771,27 @@ file E9A0AB-3F5C5C
a EE5C a EE5C
b 3F5C BAD-BLOB b 3F5C BAD-BLOB
Locale: zh_CN.gbk
OUTFILE: --default-character-set=utf8
INFILE: --default-character-set=binary
file E9A0AB-3F5C5C
a E9A03F BAD-TEXT
b 3F5C BAD-BLOB
Locale: zh_CN.gbk
OUTFILE: --default-character-set=utf8
INFILE: --default-character-set=binary CHARACTER SET gbk
file E9A0AB-3F5C5C
a E9A03F BAD-TEXT
b 3F5C BAD-BLOB
Locale: zh_CN.gbk
OUTFILE: --default-character-set=utf8
INFILE: --default-character-set=binary CHARACTER SET utf8
file E9A0AB-3F5C5C
a EE5C
b 3F5C BAD-BLOB
Locale: zh_CN.gbk Locale: zh_CN.gbk
OUTFILE: --default-character-set=utf8 OUTFILE: --default-character-set=utf8
INFILE: --default-character-set=gbk INFILE: --default-character-set=gbk
......
...@@ -75,7 +75,7 @@ my $dir= $ENV{'MYSQL_TMP_DIR'}; ...@@ -75,7 +75,7 @@ my $dir= $ENV{'MYSQL_TMP_DIR'};
open (my $FILE, '>', "$dir/tmpgbk.inc") or die "open(): $!"; open (my $FILE, '>', "$dir/tmpgbk.inc") or die "open(): $!";
for $LOCALE ("zh_CN.gbk") { for $LOCALE ("zh_CN.gbk") {
for $DUMP_OPTIONS ("--default-character-set=binary","--default-character-set=gbk","--default-character-set=utf8") { for $DUMP_OPTIONS ("--default-character-set=binary","--default-character-set=gbk","--default-character-set=utf8") {
for $RESTORE_OPTIONS ("--default-character-set=auto", "--default-character-set=gbk","--default-character-set=utf8") { for $RESTORE_OPTIONS ("--default-character-set=auto","--default-character-set=binary","--default-character-set=gbk","--default-character-set=utf8") {
for $RESTORE_CHARSET_CLAUSE ("", "CHARACTER SET gbk", "CHARACTER SET utf8") { for $RESTORE_CHARSET_CLAUSE ("", "CHARACTER SET gbk", "CHARACTER SET utf8") {
print $FILE <<END print $FILE <<END
--echo --echo
......
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