Commit 56fb6f31 authored by monty@mysql.com's avatar monty@mysql.com

Merge bk-internal.mysql.com:/home/bk/mysql-4.1

into mysql.com:/home/my/mysql-4.1
parents cc8a3339 4ddd79fb
...@@ -43,5 +43,6 @@ fi ...@@ -43,5 +43,6 @@ fi
--with-berkeley-db \ --with-berkeley-db \
--with-innodb \ --with-innodb \
--enable-thread-safe-client \ --enable-thread-safe-client \
--with-extra-charsets=complex \
--with-ndbcluster --with-ndbcluster
make make
...@@ -31,6 +31,7 @@ $opt_help= undef; ...@@ -31,6 +31,7 @@ $opt_help= undef;
$opt_log= undef; $opt_log= undef;
$opt_mail= ""; $opt_mail= "";
$opt_skip_dmg= undef; $opt_skip_dmg= undef;
$opt_skip_prefpane= undef;
$opt_skip_si= undef; $opt_skip_si= undef;
$opt_suffix= undef; $opt_suffix= undef;
$opt_verbose= undef; $opt_verbose= undef;
...@@ -41,6 +42,7 @@ GetOptions( ...@@ -41,6 +42,7 @@ GetOptions(
"help|h", "help|h",
"log|l:s", "log|l:s",
"mail|m=s", "mail|m=s",
"skip-prefpane|p",
"skip-dmg|skip-disk-image|s", "skip-dmg|skip-disk-image|s",
"skip-si|skip-startup-item", "skip-si|skip-startup-item",
"suffix=s", "suffix=s",
...@@ -82,6 +84,7 @@ $HOST=~ /^([^.-]*)/; ...@@ -82,6 +84,7 @@ $HOST=~ /^([^.-]*)/;
$HOST= $1; $HOST= $1;
$LOGFILE= "$PWD/Logs/$HOST-$MAJOR.$MINOR$SUFFIX.log"; $LOGFILE= "$PWD/Logs/$HOST-$MAJOR.$MINOR$SUFFIX.log";
$BUILDDIR= "$PWD/$HOST"; $BUILDDIR= "$PWD/$HOST";
$PREFPANE= "$PWD/mysql-administrator/source/mac/PreferencePane/build/MySQL.prefPane";
$SRCBASEDIR= <$BUILDDIR/mysql*-$VERSION>; $SRCBASEDIR= <$BUILDDIR/mysql*-$VERSION>;
$SUPFILEDIR= <$SRCBASEDIR/support-files/MacOSX>; $SUPFILEDIR= <$SRCBASEDIR/support-files/MacOSX>;
$TAR= <$BUILDDIR/$NAME-apple-darwin*-powerpc.tar.gz>; $TAR= <$BUILDDIR/$NAME-apple-darwin*-powerpc.tar.gz>;
...@@ -219,6 +222,19 @@ unless ($opt_skip_si) ...@@ -219,6 +222,19 @@ unless ($opt_skip_si)
&run_command($command, "Error while building package $SI_NAME.pkg!"); &run_command($command, "Error while building package $SI_NAME.pkg!");
} }
#
# Include the MySQL Preference Pane
#
unless ($opt_skip_prefpane)
{
&abort("Could not find PrefPane helper application. Did you compile and install it?")
unless (-f "$PREFPANE/Contents/Resources/mahelper");
&logger("Including $PREFPANE in $PKGDEST");
&run_command("mkdir $PKGDEST/MySQL.prefPane", "Could not create $PKGDEST/MySQL.prefPane!");
&run_command("ditto $PREFPANE $PKGDEST/MySQL.prefPane", "Could not copy $PREFPANE into $PKGDEST!");
&run_command("chown -R root:wheel $PKGDEST/MySQL.prefPane", "Cannot chown $PKGDEST/MySQL.prefPane!");
}
if ($opt_skip_dmg) if ($opt_skip_dmg)
{ {
&logger("SUCCESS: Package $PKGDEST/$NAME.pkg created"); &logger("SUCCESS: Package $PKGDEST/$NAME.pkg created");
...@@ -254,6 +270,7 @@ chomp($mountpoint=`mount | grep "\/Volumes\/$NAME" | cut -f3 -d" "`) if (!$opt_d ...@@ -254,6 +270,7 @@ chomp($mountpoint=`mount | grep "\/Volumes\/$NAME" | cut -f3 -d" "`) if (!$opt_d
&logger("Copying $PKGDEST/$NAME.pkg to Disk image /Volumes/$NAME"); &logger("Copying $PKGDEST/$NAME.pkg to Disk image /Volumes/$NAME");
&run_command("ditto $PKGDEST /Volumes/$NAME", "Could not copy $PKGDEST to /Volumes/$NAME!"); &run_command("ditto $PKGDEST /Volumes/$NAME", "Could not copy $PKGDEST to /Volumes/$NAME!");
&run_command("ditto $SUPFILEDIR/ReadMe.txt /Volumes/$NAME", "Could not copy $SPFILEDIR/ReadMe.txt to /Volumes/$NAME!"); &run_command("ditto $SUPFILEDIR/ReadMe.txt /Volumes/$NAME", "Could not copy $SPFILEDIR/ReadMe.txt to /Volumes/$NAME!");
&run_command("chown root:wheel /Volumes/$NAME/ReadMe.txt", "Could not fix ownerships of /Volumes/$NAME/ReadMe.txt!");
chomp($mountpoint=`mount | grep "\/Volumes\/$NAME" | cut -f1 -d" "`) if (!$opt_dry_run); chomp($mountpoint=`mount | grep "\/Volumes\/$NAME" | cut -f1 -d" "`) if (!$opt_dry_run);
&abort("/Volumes/$NAME not attached!") if (!$mountpoint && !$opt_dry_run); &abort("/Volumes/$NAME not attached!") if (!$mountpoint && !$opt_dry_run);
&logger("Unmounting $mountpoint"); &logger("Unmounting $mountpoint");
...@@ -302,6 +319,7 @@ Options: ...@@ -302,6 +319,7 @@ Options:
if logging is enabled) if logging is enabled)
Note that the \@-Sign needs to be quoted! Note that the \@-Sign needs to be quoted!
Example: --mail=user\\\@domain.com Example: --mail=user\\\@domain.com
-p, --skip-prefpane Skip including the PreferencePane
-s, --skip-disk-image, --skip-dmg Just build the PKGs, don't put it into a -s, --skip-disk-image, --skip-dmg Just build the PKGs, don't put it into a
disk image afterwards disk image afterwards
--skip-startup-item, --skip-si Skip the creation of the StartupItem PKG --skip-startup-item, --skip-si Skip the creation of the StartupItem PKG
......
...@@ -79,7 +79,8 @@ int completion_hash_update(HashTable *ht, char *arKey, uint nKeyLength, ...@@ -79,7 +79,8 @@ int completion_hash_update(HashTable *ht, char *arKey, uint nKeyLength,
if (!memcmp(p->arKey, arKey, nKeyLength)) { if (!memcmp(p->arKey, arKey, nKeyLength)) {
entry *n; entry *n;
n = (entry *) alloc_root(&ht->mem_root,sizeof(entry)); if (!(n = (entry *) alloc_root(&ht->mem_root,sizeof(entry))))
return FAILURE;
n->pNext = p->pData; n->pNext = p->pData;
n->str = str; n->str = str;
p->pData = n; p->pData = n;
......
...@@ -1502,7 +1502,10 @@ You can turn off this feature to get a quicker startup with -A\n\n"); ...@@ -1502,7 +1502,10 @@ You can turn off this feature to get a quicker startup with -A\n\n");
if (!(field_names[i] = (char **) alloc_root(&hash_mem_root, if (!(field_names[i] = (char **) alloc_root(&hash_mem_root,
sizeof(char *) * sizeof(char *) *
(num_fields*2+1)))) (num_fields*2+1))))
break; {
mysql_free_result(fields);
break;
}
field_names[i][num_fields*2]= '\0'; field_names[i][num_fields*2]= '\0';
j=0; j=0;
while ((sql_field=mysql_fetch_field(fields))) while ((sql_field=mysql_fetch_field(fields)))
...@@ -2077,10 +2080,10 @@ print_table_data_html(MYSQL_RES *result) ...@@ -2077,10 +2080,10 @@ print_table_data_html(MYSQL_RES *result)
} }
while ((cur = mysql_fetch_row(result))) while ((cur = mysql_fetch_row(result)))
{ {
ulong *lengths=mysql_fetch_lengths(result);
(void) tee_fputs("<TR>", PAGER); (void) tee_fputs("<TR>", PAGER);
for (uint i=0; i < mysql_num_fields(result); i++) for (uint i=0; i < mysql_num_fields(result); i++)
{ {
ulong *lengths=mysql_fetch_lengths(result);
(void) tee_fputs("<TD>", PAGER); (void) tee_fputs("<TD>", PAGER);
safe_put_field(cur[i],lengths[i]); safe_put_field(cur[i],lengths[i]);
(void) tee_fputs("</TD>", PAGER); (void) tee_fputs("</TD>", PAGER);
...@@ -2106,10 +2109,10 @@ print_table_data_xml(MYSQL_RES *result) ...@@ -2106,10 +2109,10 @@ print_table_data_xml(MYSQL_RES *result)
fields = mysql_fetch_fields(result); fields = mysql_fetch_fields(result);
while ((cur = mysql_fetch_row(result))) while ((cur = mysql_fetch_row(result)))
{ {
ulong *lengths=mysql_fetch_lengths(result);
(void) tee_fputs("\n <row>\n", PAGER); (void) tee_fputs("\n <row>\n", PAGER);
for (uint i=0; i < mysql_num_fields(result); i++) for (uint i=0; i < mysql_num_fields(result); i++)
{ {
ulong *lengths=mysql_fetch_lengths(result);
tee_fprintf(PAGER, "\t<%s>", (fields[i].name ? tee_fprintf(PAGER, "\t<%s>", (fields[i].name ?
(fields[i].name[0] ? fields[i].name : (fields[i].name[0] ? fields[i].name :
" &nbsp; ") : "NULL")); " &nbsp; ") : "NULL"));
......
...@@ -33,7 +33,8 @@ ...@@ -33,7 +33,8 @@
#define SHUTDOWN_DEF_TIMEOUT 3600 /* Wait for shutdown */ #define SHUTDOWN_DEF_TIMEOUT 3600 /* Wait for shutdown */
#define MAX_TRUNC_LENGTH 3 #define MAX_TRUNC_LENGTH 3
char *host= NULL, *user= 0, *opt_password= 0; char *host= NULL, *user= 0, *opt_password= 0,
*default_charset= NULL;
char truncated_var_names[MAX_MYSQL_VAR][MAX_TRUNC_LENGTH]; char truncated_var_names[MAX_MYSQL_VAR][MAX_TRUNC_LENGTH];
char ex_var_names[MAX_MYSQL_VAR][FN_REFLEN]; char ex_var_names[MAX_MYSQL_VAR][FN_REFLEN];
ulonglong last_values[MAX_MYSQL_VAR]; ulonglong last_values[MAX_MYSQL_VAR];
...@@ -145,6 +146,9 @@ static struct my_option my_long_options[] = ...@@ -145,6 +146,9 @@ static struct my_option my_long_options[] =
{"character-sets-dir", OPT_CHARSETS_DIR, {"character-sets-dir", OPT_CHARSETS_DIR,
"Directory where character sets are.", (gptr*) &charsets_dir, "Directory where character sets are.", (gptr*) &charsets_dir,
(gptr*) &charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, (gptr*) &charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"default-character-set", OPT_DEFAULT_CHARSET,
"Set the default character set.", (gptr*) &default_charset,
(gptr*) &default_charset, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"help", '?', "Display this help and exit.", 0, 0, 0, GET_NO_ARG, {"help", '?', "Display this help and exit.", 0, 0, 0, GET_NO_ARG,
NO_ARG, 0, 0, 0, 0, 0, 0}, NO_ARG, 0, 0, 0, 0, 0, 0},
{"host", 'h', "Connect to host.", (gptr*) &host, (gptr*) &host, 0, GET_STR, {"host", 'h', "Connect to host.", (gptr*) &host, (gptr*) &host, 0, GET_STR,
...@@ -343,6 +347,8 @@ int main(int argc,char *argv[]) ...@@ -343,6 +347,8 @@ int main(int argc,char *argv[])
if (shared_memory_base_name) if (shared_memory_base_name)
mysql_options(&mysql,MYSQL_SHARED_MEMORY_BASE_NAME,shared_memory_base_name); mysql_options(&mysql,MYSQL_SHARED_MEMORY_BASE_NAME,shared_memory_base_name);
#endif #endif
if (default_charset)
mysql_options(&mysql, MYSQL_SET_CHARSET_NAME, default_charset);
if (sql_connect(&mysql, option_wait)) if (sql_connect(&mysql, option_wait))
{ {
unsigned int err= mysql_errno(&mysql); unsigned int err= mysql_errno(&mysql);
...@@ -826,13 +832,39 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv) ...@@ -826,13 +832,39 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
if (argv[1][0]) if (argv[1][0])
{ {
char *pw= argv[1]; char *pw= argv[1];
bool old= find_type(argv[0], &command_typelib, 2) == ADMIN_OLD_PASSWORD;
#ifdef __WIN__ #ifdef __WIN__
uint pw_len= strlen(pw); uint pw_len= strlen(pw);
if (pw_len > 1 && pw[0] == '\'' && pw[pw_len-1] == '\'') if (pw_len > 1 && pw[0] == '\'' && pw[pw_len-1] == '\'')
printf("Warning: single quotes were not trimmed from the password by" printf("Warning: single quotes were not trimmed from the password by"
" your command\nline client, as you might have expected.\n"); " your command\nline client, as you might have expected.\n");
#endif #endif
if (find_type(argv[0], &command_typelib, 2) == ADMIN_OLD_PASSWORD) /*
If we don't already know to use an old-style password, see what
the server is using
*/
if (!old) {
if (mysql_query(mysql, "SHOW VARIABLES LIKE 'old_passwords'")) {
my_printf_error(0, "Could not determine old_passwords setting from server; error: '%s'",
MYF(ME_BELL),mysql_error(mysql));
return -1;
} else {
MYSQL_RES *res= mysql_store_result(mysql);
if (!res) {
my_printf_error(0, "Could not get old_passwords setting from server; error: '%s'",
MYF(ME_BELL),mysql_error(mysql));
return -1;
}
if (!mysql_num_rows(res)) {
old= 1;
} else {
MYSQL_ROW row= mysql_fetch_row(res);
old= !strncmp(row[1], "ON", 2);
}
mysql_free_result(res);
}
}
if (old)
make_scrambled_password_323(crypted_pw, pw); make_scrambled_password_323(crypted_pw, pw);
else else
make_scrambled_password(crypted_pw, pw); make_scrambled_password(crypted_pw, pw);
......
...@@ -106,7 +106,14 @@ FILE *md_result_file; ...@@ -106,7 +106,14 @@ FILE *md_result_file;
static char *shared_memory_base_name=0; static char *shared_memory_base_name=0;
#endif #endif
static uint opt_protocol= 0; static uint opt_protocol= 0;
static char *default_charset= (char*) MYSQL_UNIVERSAL_CLIENT_CHARSET; /*
Constant for detection of default value of default_charset.
If default_charset is equal to mysql_universal_client_charset, then
it is the default value which assigned at the very beginning of main().
*/
static const char *mysql_universal_client_charset=
MYSQL_UNIVERSAL_CLIENT_CHARSET;
static char *default_charset;
static CHARSET_INFO *charset_info= &my_charset_latin1; static CHARSET_INFO *charset_info= &my_charset_latin1;
const char *default_dbug_option="d:t:o,/tmp/mysqldump.trace"; const char *default_dbug_option="d:t:o,/tmp/mysqldump.trace";
...@@ -678,7 +685,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), ...@@ -678,7 +685,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
Set charset to the default compiled value if it hasn't Set charset to the default compiled value if it hasn't
been reset yet by --default-character-set=xxx. been reset yet by --default-character-set=xxx.
*/ */
if (default_charset == (char*) MYSQL_UNIVERSAL_CLIENT_CHARSET) if (default_charset == mysql_universal_client_charset)
default_charset= (char*) MYSQL_DEFAULT_CHARSET_NAME; default_charset= (char*) MYSQL_DEFAULT_CHARSET_NAME;
break; break;
} }
...@@ -2403,6 +2410,7 @@ cleanup: ...@@ -2403,6 +2410,7 @@ cleanup:
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
compatible_mode_normal_str[0]= 0; compatible_mode_normal_str[0]= 0;
default_charset= (char *)mysql_universal_client_charset;
MY_INIT(argv[0]); MY_INIT(argv[0]);
if (get_options(&argc, &argv)) if (get_options(&argc, &argv))
......
...@@ -145,7 +145,7 @@ case $FLAG in ...@@ -145,7 +145,7 @@ case $FLAG in
# #
-fh) -fh)
cat $FILES | $AWK '/el_action_t/ { print $3 }' | \ cat $FILES | $AWK '/el_action_t/ { print $3 }' | \
sort | tr '[a-z]' '[A-Z]' | $AWK ' sort | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | $AWK '
BEGIN { BEGIN {
printf("/* Automatically generated file, do not edit */\n"); printf("/* Automatically generated file, do not edit */\n");
printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n"); printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n");
......
...@@ -87,7 +87,8 @@ parse_line(EditLine *el, const char *line) ...@@ -87,7 +87,8 @@ parse_line(EditLine *el, const char *line)
int argc; int argc;
Tokenizer *tok; Tokenizer *tok;
tok = tok_init(NULL); if (!(tok = tok_init(NULL)))
return -1;
tok_line(tok, line, &argc, &argv); tok_line(tok, line, &argc, &argv);
argc = el_parse(el, argc, argv); argc = el_parse(el, argc, argv);
tok_end(tok); tok_end(tok);
......
...@@ -1924,7 +1924,7 @@ AC_CHECK_FUNCS(alarm bcmp bfill bmove bzero chsize cuserid fchmod fcntl \ ...@@ -1924,7 +1924,7 @@ AC_CHECK_FUNCS(alarm bcmp bfill bmove bzero chsize cuserid fchmod fcntl \
pthread_key_delete pthread_rwlock_rdlock pthread_setprio \ pthread_key_delete pthread_rwlock_rdlock pthread_setprio \
pthread_setprio_np pthread_setschedparam pthread_sigmask readlink \ pthread_setprio_np pthread_setschedparam pthread_sigmask readlink \
realpath rename rint rwlock_init setupterm \ realpath rename rint rwlock_init setupterm \
shmget shmat shmdt shmctl \ shmget shmat shmdt shmctl sigaction \
sighold sigset sigthreadmask \ sighold sigset sigthreadmask \
snprintf socket stpcpy strcasecmp strerror strnlen strpbrk strstr strtol \ snprintf socket stpcpy strcasecmp strerror strnlen strpbrk strstr strtol \
strtoll strtoul strtoull tell tempnam thr_setconcurrency vidattr) strtoll strtoul strtoull tell tempnam thr_setconcurrency vidattr)
...@@ -3097,7 +3097,8 @@ ndb_transporter_opt_objs="" ...@@ -3097,7 +3097,8 @@ ndb_transporter_opt_objs=""
if test "$ac_cv_func_shmget" = "yes" && if test "$ac_cv_func_shmget" = "yes" &&
test "$ac_cv_func_shmat" = "yes" && test "$ac_cv_func_shmat" = "yes" &&
test "$ac_cv_func_shmdt" = "yes" && test "$ac_cv_func_shmdt" = "yes" &&
test "$ac_cv_func_shmctl" = "yes" test "$ac_cv_func_shmctl" = "yes" &&
test "$ac_cv_func_sigaction" = "yes"
then then
AC_DEFINE([NDB_SHM_TRANSPORTER], [1], AC_DEFINE([NDB_SHM_TRANSPORTER], [1],
[Including Ndb Cluster DB shared memory transporter]) [Including Ndb Cluster DB shared memory transporter])
......
...@@ -631,6 +631,7 @@ extern int pthread_dummy(int); ...@@ -631,6 +631,7 @@ extern int pthread_dummy(int);
/* All thread specific variables are in the following struct */ /* All thread specific variables are in the following struct */
#define THREAD_NAME_SIZE 10 #define THREAD_NAME_SIZE 10
#ifndef DEFAULT_THREAD_STACK
#if defined(__ia64__) #if defined(__ia64__)
/* /*
MySQL can survive with 32K, but some glibc libraries require > 128K stack MySQL can survive with 32K, but some glibc libraries require > 128K stack
...@@ -640,6 +641,7 @@ extern int pthread_dummy(int); ...@@ -640,6 +641,7 @@ extern int pthread_dummy(int);
#else #else
#define DEFAULT_THREAD_STACK (192*1024) #define DEFAULT_THREAD_STACK (192*1024)
#endif #endif
#endif
struct st_my_thread_var struct st_my_thread_var
{ {
......
...@@ -239,11 +239,12 @@ MYSQL_TEST_SSL_OPTS="" ...@@ -239,11 +239,12 @@ MYSQL_TEST_SSL_OPTS=""
USE_TIMER="" USE_TIMER=""
USE_EMBEDDED_SERVER="" USE_EMBEDDED_SERVER=""
RESULT_EXT="" RESULT_EXT=""
TEST_MODE="default"
while test $# -gt 0; do while test $# -gt 0; do
case "$1" in case "$1" in
--embedded-server) USE_EMBEDDED_SERVER=1 ; USE_MANAGER=0 ; NO_SLAVE=1 ; \ --embedded-server) USE_EMBEDDED_SERVER=1 USE_MANAGER=0 NO_SLAVE=1 ; \
USE_RUNNING_SERVER="" RESULT_EXT=".es" ;; USE_RUNNING_SERVER="" RESULT_EXT=".es" TEST_MODE="embedded" ;;
--user=*) DBUSER=`$ECHO "$1" | $SED -e "s;--user=;;"` ;; --user=*) DBUSER=`$ECHO "$1" | $SED -e "s;--user=;;"` ;;
--force) FORCE=1 ;; --force) FORCE=1 ;;
--timer) USE_TIMER=1 ;; --timer) USE_TIMER=1 ;;
...@@ -323,7 +324,7 @@ while test $# -gt 0; do ...@@ -323,7 +324,7 @@ while test $# -gt 0; do
SLEEP_TIME_AFTER_RESTART=`$ECHO "$1" | $SED -e "s;--sleep=;;"` SLEEP_TIME_AFTER_RESTART=`$ECHO "$1" | $SED -e "s;--sleep=;;"`
;; ;;
--ps-protocol) --ps-protocol)
EXTRA_MYSQL_TEST_OPT="$EXTRA_MYSQL_TEST_OPT $1" ;; TEST_MODE="ps-protocol" EXTRA_MYSQL_TEST_OPT="$EXTRA_MYSQL_TEST_OPT $1" ;;
--user-test=*) --user-test=*)
USER_TEST=`$ECHO "$1" | $SED -e "s;--user-test=;;"` USER_TEST=`$ECHO "$1" | $SED -e "s;--user-test=;;"`
;; ;;
...@@ -1561,7 +1562,7 @@ run_testcase () ...@@ -1561,7 +1562,7 @@ run_testcase ()
show_failed_diff $tname show_failed_diff $tname
$ECHO $ECHO
if [ x$FORCE != x1 ] ; then if [ x$FORCE != x1 ] ; then
$ECHO "Aborting: $tname failed. To continue, re-run with '--force'." $ECHO "Aborting: $tname failed in $TEST_MODE mode. To continue, re-run with '--force'."
$ECHO $ECHO
if [ -z "$DO_GDB" ] && [ -z "$USE_RUNNING_SERVER" ] && \ if [ -z "$DO_GDB" ] && [ -z "$USE_RUNNING_SERVER" ] && \
[ -z "$DO_DDD" ] && [ -z "$USE_EMBEDDED_SERVER" ] [ -z "$DO_DDD" ] && [ -z "$USE_EMBEDDED_SERVER" ]
...@@ -1742,7 +1743,7 @@ $ECHO ...@@ -1742,7 +1743,7 @@ $ECHO
[ "$DO_GPROF" ] && gprof_collect # collect coverage information [ "$DO_GPROF" ] && gprof_collect # collect coverage information
if [ $TOT_FAIL -ne 0 ]; then if [ $TOT_FAIL -ne 0 ]; then
$ECHO "mysql-test-run: *** Failing the test(s):$FAILED_CASES" $ECHO "mysql-test-run in $TEST_MODE mode: *** Failing the test(s):$FAILED_CASES"
$ECHO $ECHO
exit 1 exit 1
else else
......
...@@ -310,3 +310,113 @@ SubscrID SbclID ...@@ -310,3 +310,113 @@ SubscrID SbclID
3 NULL 3 NULL
drop table test1; drop table test1;
drop table test2; drop table test2;
create table t1 (
pk int primary key,
dt datetime not null,
da date not null,
ye year not null,
ti time not null,
ts timestamp not null,
index(dt),
index(da),
index(ye),
index(ti),
index(ts)
) engine=ndb;
insert into t1 (pk,dt,da,ye,ti) values
(1, '1901-05-05 23:00:59', '1901-05-05', '1901', '23:00:59'),
(2, '1912-09-05 13:00:59', '1912-09-05', '1912', '13:00:59'),
(3, '1945-12-31 00:00:00', '1945-12-31', '1945', '00:00:00'),
(4, '1955-12-31 00:00:00', '1955-12-31', '1955', '00:00:00'),
(5, '1963-06-06 06:06:06', '1963-06-06', '1963', '06:06:06'),
(6, '1993-06-06 06:06:06', '1993-06-06', '1993', '06:06:06'),
(7, '2001-01-01 10:11:10', '2001-01-01', '2001', '10:11:10'),
(8, '2001-01-01 10:11:11', '2001-01-01', '2001', '10:11:11'),
(9, '2005-01-31 23:59:59', '2005-01-31', '2005', '23:59:59');
select count(*)-9 from t1 use index (dt) where dt > '1900-01-01 00:00:00';
count(*)-9
0
select count(*)-6 from t1 use index (dt) where dt >= '1955-12-31 00:00:00';
count(*)-6
0
select count(*)-5 from t1 use index (dt) where dt > '1955-12-31 00:00:00';
count(*)-5
0
select count(*)-5 from t1 use index (dt) where dt < '1970-03-03 22:22:22';
count(*)-5
0
select count(*)-7 from t1 use index (dt) where dt < '2001-01-01 10:11:11';
count(*)-7
0
select count(*)-8 from t1 use index (dt) where dt <= '2001-01-01 10:11:11';
count(*)-8
0
select count(*)-9 from t1 use index (dt) where dt <= '2055-01-01 00:00:00';
count(*)-9
0
select count(*)-9 from t1 use index (da) where da > '1900-01-01';
count(*)-9
0
select count(*)-6 from t1 use index (da) where da >= '1955-12-31';
count(*)-6
0
select count(*)-5 from t1 use index (da) where da > '1955-12-31';
count(*)-5
0
select count(*)-5 from t1 use index (da) where da < '1970-03-03';
count(*)-5
0
select count(*)-6 from t1 use index (da) where da < '2001-01-01';
count(*)-6
0
select count(*)-8 from t1 use index (da) where da <= '2001-01-02';
count(*)-8
0
select count(*)-9 from t1 use index (da) where da <= '2055-01-01';
count(*)-9
0
select count(*)-9 from t1 use index (ye) where ye > '1900';
count(*)-9
0
select count(*)-6 from t1 use index (ye) where ye >= '1955';
count(*)-6
0
select count(*)-5 from t1 use index (ye) where ye > '1955';
count(*)-5
0
select count(*)-5 from t1 use index (ye) where ye < '1970';
count(*)-5
0
select count(*)-6 from t1 use index (ye) where ye < '2001';
count(*)-6
0
select count(*)-8 from t1 use index (ye) where ye <= '2001';
count(*)-8
0
select count(*)-9 from t1 use index (ye) where ye <= '2055';
count(*)-9
0
select count(*)-9 from t1 use index (ti) where ti >= '00:00:00';
count(*)-9
0
select count(*)-7 from t1 use index (ti) where ti > '00:00:00';
count(*)-7
0
select count(*)-7 from t1 use index (ti) where ti > '05:05:05';
count(*)-7
0
select count(*)-5 from t1 use index (ti) where ti > '06:06:06';
count(*)-5
0
select count(*)-5 from t1 use index (ti) where ti < '10:11:11';
count(*)-5
0
select count(*)-6 from t1 use index (ti) where ti <= '10:11:11';
count(*)-6
0
select count(*)-8 from t1 use index (ti) where ti < '23:59:59';
count(*)-8
0
select count(*)-9 from t1 use index (ti) where ti <= '23:59:59';
count(*)-9
0
...@@ -143,3 +143,39 @@ drop table t1; ...@@ -143,3 +143,39 @@ drop table t1;
create table t1 (f float(54)); create table t1 (f float(54));
ERROR 42000: Incorrect column specifier for column 'f' ERROR 42000: Incorrect column specifier for column 'f'
drop table if exists t1; drop table if exists t1;
create table t1 (f float(4,3));
insert into t1 values (-11.0),(-11),("-11"),(11.0),(11),("11");
Warnings:
Warning 1264 Data truncated; out of range for column 'f' at row 1
Warning 1264 Data truncated; out of range for column 'f' at row 2
Warning 1264 Data truncated; out of range for column 'f' at row 3
Warning 1264 Data truncated; out of range for column 'f' at row 4
Warning 1264 Data truncated; out of range for column 'f' at row 5
Warning 1264 Data truncated; out of range for column 'f' at row 6
select * from t1;
f
-9.999
-9.999
-9.999
9.999
9.999
9.999
drop table if exists t1;
create table t1 (f double(4,3));
insert into t1 values (-11.0),(-11),("-11"),(11.0),(11),("11");
Warnings:
Warning 1264 Data truncated; out of range for column 'f' at row 1
Warning 1264 Data truncated; out of range for column 'f' at row 2
Warning 1264 Data truncated; out of range for column 'f' at row 3
Warning 1264 Data truncated; out of range for column 'f' at row 4
Warning 1264 Data truncated; out of range for column 'f' at row 5
Warning 1264 Data truncated; out of range for column 'f' at row 6
select * from t1;
f
-9.999
-9.999
-9.999
9.999
9.999
9.999
drop table if exists t1;
...@@ -143,3 +143,39 @@ drop table t1; ...@@ -143,3 +143,39 @@ drop table t1;
create table t1 (f float(54)); create table t1 (f float(54));
ERROR 42000: Incorrect column specifier for column 'f' ERROR 42000: Incorrect column specifier for column 'f'
drop table if exists t1; drop table if exists t1;
create table t1 (f float(4,3));
insert into t1 values (-11.0),(-11),("-11"),(11.0),(11),("11");
Warnings:
Warning 1264 Data truncated; out of range for column 'f' at row 1
Warning 1264 Data truncated; out of range for column 'f' at row 2
Warning 1264 Data truncated; out of range for column 'f' at row 3
Warning 1264 Data truncated; out of range for column 'f' at row 4
Warning 1264 Data truncated; out of range for column 'f' at row 5
Warning 1264 Data truncated; out of range for column 'f' at row 6
select * from t1;
f
-9.999
-9.999
-9.999
9.999
9.999
9.999
drop table if exists t1;
create table t1 (f double(4,3));
insert into t1 values (-11.0),(-11),("-11"),(11.0),(11),("11");
Warnings:
Warning 1264 Data truncated; out of range for column 'f' at row 1
Warning 1264 Data truncated; out of range for column 'f' at row 2
Warning 1264 Data truncated; out of range for column 'f' at row 3
Warning 1264 Data truncated; out of range for column 'f' at row 4
Warning 1264 Data truncated; out of range for column 'f' at row 5
Warning 1264 Data truncated; out of range for column 'f' at row 6
select * from t1;
f
-9.999
-9.999
-9.999
9.999
9.999
9.999
drop table if exists t1;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
drop table if exists `T1`;
drop table if exists `T2`;
drop table if exists `T3`;
drop table if exists `T4`;
drop table if exists `T5`;
drop table if exists `T6`;
drop table if exists `T7`;
drop table if exists `T8`;
drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES sjis;
SET character_set_database = sjis;
CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `T2` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `T3` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `T10` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `T11` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `T12` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = bdb;
INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T3` VALUES ('ソ十表予構'),('ソ十表予'),('ソ十表'),('ソ十'),('ソ'),('');
INSERT INTO `T4` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T5` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T6` VALUES ('ソ十表予構'),('ソ十表予'),('ソ十表'),('ソ十'),('ソ'),('');
INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T9` VALUES ('ソ十表予構'),('ソ十表予'),('ソ十表'),('ソ十'),('ソ'),('');
INSERT INTO `T10` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T11` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T12` VALUES ('ソ十表予構'),('ソ十表予'),('ソ十表'),('ソ十'),('ソ'),('');
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`;
C1 CHAR_LENGTH(`C1`)
0
ア 1
アイ 2
アイウ 3
アイウエ 4
アイウエオ 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T2`;
C1 CHAR_LENGTH(`C1`)
0
あ 1
あい 2
あいう 3
あいうえ 4
あいうえお 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T3`;
C1 CHAR_LENGTH(`C1`)
0
ソ 1
ソ十 2
ソ十表 3
ソ十表予 4
ソ十表予構 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T4`;
C1 CHAR_LENGTH(`C1`)
0
ア 1
アイ 2
アイウ 3
アイウエ 4
アイウエオ 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T5`;
C1 CHAR_LENGTH(`C1`)
0
あ 1
あい 2
あいう 3
あいうえ 4
あいうえお 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T6`;
C1 CHAR_LENGTH(`C1`)
0
ソ 1
ソ十 2
ソ十表 3
ソ十表予 4
ソ十表予構 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T7`;
C1 CHAR_LENGTH(`C1`)
アイウエオ 5
アイウエ 4
アイウ 3
アイ 2
ア 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T8`;
C1 CHAR_LENGTH(`C1`)
あいうえお 5
あいうえ 4
あいう 3
あい 2
あ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T9`;
C1 CHAR_LENGTH(`C1`)
ソ十表予構 5
ソ十表予 4
ソ十表 3
ソ十 2
ソ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T10`;
C1 CHAR_LENGTH(`C1`)
アイウエオ 5
アイウエ 4
アイウ 3
アイ 2
ア 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T11`;
C1 CHAR_LENGTH(`C1`)
あいうえお 5
あいうえ 4
あいう 3
あい 2
あ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T12`;
C1 CHAR_LENGTH(`C1`)
ソ十表予構 5
ソ十表予 4
ソ十表 3
ソ十 2
ソ 1
0
DROP TABLE `T1`;
DROP TABLE `T2`;
DROP TABLE `T3`;
DROP TABLE `T4`;
DROP TABLE `T5`;
DROP TABLE `T6`;
DROP TABLE `T7`;
DROP TABLE `T8`;
DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
drop table if exists `T1`;
drop table if exists `T2`;
drop table if exists `T3`;
drop table if exists `T4`;
drop table if exists `T5`;
drop table if exists `T6`;
drop table if exists `T7`;
drop table if exists `T8`;
drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES ujis;
SET character_set_database = ucs2;
SET collation_connection = ucs2_general_ci;
CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `T2` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `T3` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `T10` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `T11` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `T12` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = bdb;
INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T3` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T4` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T5` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T6` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T9` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T10` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T11` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T12` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`;
C1 CHAR_LENGTH(`C1`)
0
ア 1
アイ 2
アイウ 3
アイウエ 4
アイウエオ 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T2`;
C1 CHAR_LENGTH(`C1`)
0
あ 1
あい 2
あいう 3
あいうえ 4
あいうえお 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T3`;
C1 CHAR_LENGTH(`C1`)
0
龔 1
龔龖 2
龔龖龗 3
龔龖龗龞 4
龔龖龗龞龡 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T4`;
C1 CHAR_LENGTH(`C1`)
0
ア 1
アイ 2
アイウ 3
アイウエ 4
アイウエオ 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T5`;
C1 CHAR_LENGTH(`C1`)
0
あ 1
あい 2
あいう 3
あいうえ 4
あいうえお 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T6`;
C1 CHAR_LENGTH(`C1`)
0
龔 1
龔龖 2
龔龖龗 3
龔龖龗龞 4
龔龖龗龞龡 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T7`;
C1 CHAR_LENGTH(`C1`)
アイウエオ 5
アイウエ 4
アイウ 3
アイ 2
ア 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T8`;
C1 CHAR_LENGTH(`C1`)
あいうえお 5
あいうえ 4
あいう 3
あい 2
あ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T9`;
C1 CHAR_LENGTH(`C1`)
龔龖龗龞龡 5
龔龖龗龞 4
龔龖龗 3
龔龖 2
龔 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T10`;
C1 CHAR_LENGTH(`C1`)
アイウエオ 5
アイウエ 4
アイウ 3
アイ 2
ア 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T11`;
C1 CHAR_LENGTH(`C1`)
あいうえお 5
あいうえ 4
あいう 3
あい 2
あ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T12`;
C1 CHAR_LENGTH(`C1`)
龔龖龗龞龡 5
龔龖龗龞 4
龔龖龗 3
龔龖 2
龔 1
0
DROP TABLE `T1`;
DROP TABLE `T2`;
DROP TABLE `T3`;
DROP TABLE `T4`;
DROP TABLE `T5`;
DROP TABLE `T6`;
DROP TABLE `T7`;
DROP TABLE `T8`;
DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
drop table if exists `T1`;
drop table if exists `T2`;
drop table if exists `T3`;
drop table if exists `T4`;
drop table if exists `T5`;
drop table if exists `T6`;
drop table if exists `T7`;
drop table if exists `T8`;
drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES ujis;
SET character_set_database = ujis;
CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `T2` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `T3` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `T10` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `T11` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `T12` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = bdb;
INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T3` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T4` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T5` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T6` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T9` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T10` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T11` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T12` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`;
C1 CHAR_LENGTH(`C1`)
0
ア 1
アイ 2
アイウ 3
アイウエ 4
アイウエオ 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T2`;
C1 CHAR_LENGTH(`C1`)
0
あ 1
あい 2
あいう 3
あいうえ 4
あいうえお 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T3`;
C1 CHAR_LENGTH(`C1`)
0
龔 1
龔龖 2
龔龖龗 3
龔龖龗龞 4
龔龖龗龞龡 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T4`;
C1 CHAR_LENGTH(`C1`)
0
ア 1
アイ 2
アイウ 3
アイウエ 4
アイウエオ 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T5`;
C1 CHAR_LENGTH(`C1`)
0
あ 1
あい 2
あいう 3
あいうえ 4
あいうえお 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T6`;
C1 CHAR_LENGTH(`C1`)
0
龔 1
龔龖 2
龔龖龗 3
龔龖龗龞 4
龔龖龗龞龡 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T7`;
C1 CHAR_LENGTH(`C1`)
アイウエオ 5
アイウエ 4
アイウ 3
アイ 2
ア 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T8`;
C1 CHAR_LENGTH(`C1`)
あいうえお 5
あいうえ 4
あいう 3
あい 2
あ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T9`;
C1 CHAR_LENGTH(`C1`)
龔龖龗龞龡 5
龔龖龗龞 4
龔龖龗 3
龔龖 2
龔 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T10`;
C1 CHAR_LENGTH(`C1`)
アイウエオ 5
アイウエ 4
アイウ 3
アイ 2
ア 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T11`;
C1 CHAR_LENGTH(`C1`)
あいうえお 5
あいうえ 4
あいう 3
あい 2
あ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T12`;
C1 CHAR_LENGTH(`C1`)
龔龖龗龞龡 5
龔龖龗龞 4
龔龖龗 3
龔龖 2
龔 1
0
DROP TABLE `T1`;
DROP TABLE `T2`;
DROP TABLE `T3`;
DROP TABLE `T4`;
DROP TABLE `T5`;
DROP TABLE `T6`;
DROP TABLE `T7`;
DROP TABLE `T8`;
DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
drop table if exists `T1`;
drop table if exists `T2`;
drop table if exists `T3`;
drop table if exists `T4`;
drop table if exists `T5`;
drop table if exists `T6`;
drop table if exists `T7`;
drop table if exists `T8`;
drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES utf8;
SET character_set_database = utf8;
CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `T2` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `T3` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `T10` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `T11` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `T12` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = bdb;
INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T3` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T4` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T5` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T6` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T9` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T10` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T11` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T12` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`;
C1 CHAR_LENGTH(`C1`)
0
ア 1
アイ 2
アイウ 3
アイウエ 4
アイウエオ 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T2`;
C1 CHAR_LENGTH(`C1`)
0
あ 1
あい 2
あいう 3
あいうえ 4
あいうえお 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T3`;
C1 CHAR_LENGTH(`C1`)
0
龔 1
龔龖 2
龔龖龗 3
龔龖龗龞 4
龔龖龗龞龡 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T4`;
C1 CHAR_LENGTH(`C1`)
0
ア 1
アイ 2
アイウ 3
アイウエ 4
アイウエオ 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T5`;
C1 CHAR_LENGTH(`C1`)
0
あ 1
あい 2
あいう 3
あいうえ 4
あいうえお 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T6`;
C1 CHAR_LENGTH(`C1`)
0
龔 1
龔龖 2
龔龖龗 3
龔龖龗龞 4
龔龖龗龞龡 5
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T7`;
C1 CHAR_LENGTH(`C1`)
アイウエオ 5
アイウエ 4
アイウ 3
アイ 2
ア 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T8`;
C1 CHAR_LENGTH(`C1`)
あいうえお 5
あいうえ 4
あいう 3
あい 2
あ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T9`;
C1 CHAR_LENGTH(`C1`)
龔龖龗龞龡 5
龔龖龗龞 4
龔龖龗 3
龔龖 2
龔 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T10`;
C1 CHAR_LENGTH(`C1`)
アイウエオ 5
アイウエ 4
アイウ 3
アイ 2
ア 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T11`;
C1 CHAR_LENGTH(`C1`)
あいうえお 5
あいうえ 4
あいう 3
あい 2
あ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T12`;
C1 CHAR_LENGTH(`C1`)
龔龖龗龞龡 5
龔龖龗龞 4
龔龖龗 3
龔龖 2
龔 1
0
DROP TABLE `T1`;
DROP TABLE `T2`;
DROP TABLE `T3`;
DROP TABLE `T4`;
DROP TABLE `T5`;
DROP TABLE `T6`;
DROP TABLE `T7`;
DROP TABLE `T8`;
DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
drop table if exists `sP`;
drop table if exists `sQ`;
drop table if exists `sR`;
drop table if exists `sS`;
drop table if exists `sT`;
drop table if exists `sU`;
drop table if exists `sV`;
drop table if exists `sW`;
drop table if exists `sX`;
drop table if exists `sPO`;
drop table if exists `sPP`;
drop table if exists `sPQ`;
SET NAMES sjis;
SET character_set_database = sjis;
CREATE TABLE `sP` (`bP` char(20)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `sQ` (`bP` char(20)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `sR` (`bP` char(20)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `sS` (`bP` char(20)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `sT` (`bP` char(20)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `sU` (`bP` char(20)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `sV` (`bP` char(20)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `sW` (`bP` char(20)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `sX` (`bP` char(20)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `sPO` (`bP` char(20)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `sPP` (`bP` char(20)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `sPQ` (`bP` char(20)) DEFAULT CHARSET = sjis engine = bdb;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `sP`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `sQ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `sR`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `sS`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `sT`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `sU`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `sV`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `sW`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `sX`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `sPO`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `sPP`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `sPQ`;
SELECT DISTINCT CHARSET(`bP`) FROM `sP`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(`bP`) FROM `sQ`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(`bP`) FROM `sR`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sP`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sP`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sP`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sP`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sQ`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sQ`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sQ`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sQ`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sR`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sR`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sR`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sR`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
SELECT DISTINCT CHARSET(`bP`) FROM `sS`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(`bP`) FROM `sT`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(`bP`) FROM `sU`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sS`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sS`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sS`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sS`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sT`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sT`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sT`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sT`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sU`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sU`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sU`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sU`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
SELECT DISTINCT CHARSET(`bP`) FROM `sV`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(`bP`) FROM `sW`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(`bP`) FROM `sX`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sV`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sV`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sV`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sV`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sW`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sW`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sW`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sW`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sX`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sX`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sX`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sX`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
SELECT DISTINCT CHARSET(`bP`) FROM `sPO`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(`bP`) FROM `sPP`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(`bP`) FROM `sPQ`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sPO`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sPO`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sPO`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sPO`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sPP`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sPP`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sPP`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sPP`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sPQ`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sPQ`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sPQ`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sPQ`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
drop table `sP`;
drop table `sQ`;
drop table `sR`;
drop table `sS`;
drop table `sT`;
drop table `sU`;
drop table `sV`;
drop table `sW`;
drop table `sX`;
drop table `sPO`;
drop table `sPP`;
drop table `sPQ`;
This diff is collapsed.
drop table if exists `ԣ`;
drop table if exists `ԣ`;
drop table if exists `ԣ`;
drop table if exists `ԣ`;
drop table if exists `ԣ`;
drop table if exists `ԣ`;
drop table if exists `ԣ`;
drop table if exists `ԣ`;
drop table if exists `ԣ`;
drop table if exists `ԣ`;
drop table if exists `ԣ`;
drop table if exists `ԣ`;
SET NAMES ujis;
SET character_set_database = ujis;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = bdb;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `ԣ`;
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table if exists `T1`;
drop table if exists `T2`;
drop table if exists `T3`;
drop table if exists `T4`;
drop table if exists `T5`;
drop table if exists `T6`;
drop table if exists `T7`;
drop table if exists `T8`;
drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES utf8;
SET character_set_database = utf8;
CREATE TABLE `T1` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `T2` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `T3` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `T4` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `T5` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `T6` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `T7` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `T8` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `T9` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `T10` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `T11` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `T12` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = bdb;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE `T1`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE `T2`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE `T3`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE `T4`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE `T5`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE `T6`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE `T7`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE `T8`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE `T9`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE `T10`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE `T11`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE `T12`;
SELECT DISTINCT CHARSET(`C1`) FROM `T1`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(`C1`) FROM `T2`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(`C1`) FROM `T3`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T1`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T1`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T1`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T1`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T2`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T2`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T2`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T2`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T3`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T3`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T3`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T3`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(`C1`) FROM `T4`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(`C1`) FROM `T5`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(`C1`) FROM `T6`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T4`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T4`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T4`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T4`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T5`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T5`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T5`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T5`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T6`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T6`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T6`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T6`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(`C1`) FROM `T7`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(`C1`) FROM `T8`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(`C1`) FROM `T9`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T7`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T7`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T7`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T7`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T8`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T8`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T8`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T8`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T9`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T9`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T9`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T9`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(`C1`) FROM `T10`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(`C1`) FROM `T11`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(`C1`) FROM `T12`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T10`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T10`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T10`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T10`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T11`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T11`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T11`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T11`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T12`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T12`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T12`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T12`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
drop table `T1`;
drop table `T2`;
drop table `T3`;
drop table `T4`;
drop table `T5`;
drop table `T6`;
drop table `T7`;
drop table `T8`;
drop table `T9`;
drop table `T10`;
drop table `T11`;
drop table `T12`;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
SET NAMES sjis;
SET character_set_database = sjis;
drop database if exists `ニホンゴ`;
drop database if exists `日本語`;
drop database if exists `ソ十表`;
CREATE DATABASE `ニホンゴ`;
CREATE DATABASE `日本語`;
CREATE DATABASE `ソ十表`;
SHOW DATABASES;
Database
mysql
test
ソ十表
日本語
ニホンゴ
USE `ニホンゴ`;
USE `日本語`;
USE `ソ十表`;
DROP DATABASE `ニホンゴ`;
DROP DATABASE `日本語`;
DROP DATABASE `ソ十表`;
drop database if exists `ニホンゴ`;
drop database if exists `日本語`;
drop database if exists `龔龖龗`;
SET NAMES ujis;
SET character_set_database = ucs2;
SET character_set_server = ucs2;
CREATE DATABASE `ニホンゴ`;
CREATE DATABASE `日本語`;
CREATE DATABASE `龔龖龗`;
SHOW DATABASES;
Database
mysql
test
日本語
龔龖龗
ニホンゴ
USE `ニホンゴ`;
USE `日本語`;
USE `龔龖龗`;
DROP DATABASE `ニホンゴ`;
DROP DATABASE `日本語`;
DROP DATABASE `龔龖龗`;
drop database if exists `ニホンゴ`;
drop database if exists `日本語`;
drop database if exists `龔龖龗`;
SET NAMES ujis;
SET character_set_database = ujis;
CREATE DATABASE `ニホンゴ`;
CREATE DATABASE `日本語`;
CREATE DATABASE `龔龖龗`;
SHOW DATABASES;
Database
mysql
test
日本語
龔龖龗
ニホンゴ
USE `ニホンゴ`;
USE `日本語`;
USE `龔龖龗`;
DROP DATABASE `ニホンゴ`;
DROP DATABASE `日本語`;
DROP DATABASE `龔龖龗`;
drop database if exists `ニホンゴ`;
drop database if exists `日本語`;
drop database if exists `龔龖龗`;
SET NAMES utf8;
SET character_set_database = utf8;
CREATE DATABASE `ニホンゴ`;
CREATE DATABASE `日本語`;
CREATE DATABASE `龔龖龗`;
SHOW DATABASES;
Database
mysql
test
日本語
龔龖龗
ニホンゴ
USE `ニホンゴ`;
USE `日本語`;
USE `龔龖龗`;
DROP DATABASE `ニホンゴ`;
DROP DATABASE `日本語`;
DROP DATABASE `龔龖龗`;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
drop table if exists `T1`;
drop table if exists `T2`;
drop table if exists `T3`;
drop table if exists `T4`;
drop table if exists `T5`;
drop table if exists `T6`;
drop table if exists `T7`;
drop table if exists `T8`;
drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES ujis;
SET character_set_database = ucs2;
SET collation_connection = ucs2_general_ci;
CREATE TABLE `T1` (`C1` ENUM('ア','イ','ウ'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `T2` (`C1` ENUM('あ','い','う'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `T3` (`C1` ENUM('龔','龖','龗'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `T4` (`C1` ENUM('ア','イ','ウ'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T5` (`C1` ENUM('あ','い','う'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T6` (`C1` ENUM('龔','龖','龗'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T7` (`C1` ENUM('ア','イ','ウ'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `T8` (`C1` ENUM('あ','い','う'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `T9` (`C1` ENUM('龔','龖','龗'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `T10` (`C1` ENUM('ア','イ','ウ'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `T11` (`C1` ENUM('あ','い','う'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `T12` (`C1` ENUM('龔','龖','龗'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = bdb;
INSERT INTO `T1` VALUES ('ア'),('イ'),('ウ');
INSERT INTO `T2` VALUES ('あ'),('い'),('う');
INSERT INTO `T3` VALUES ('龔'),('龖'),('龗');
INSERT INTO `T4` VALUES ('ア'),('イ'),('ウ');
INSERT INTO `T5` VALUES ('あ'),('い'),('う');
INSERT INTO `T6` VALUES ('龔'),('龖'),('龗');
INSERT INTO `T7` VALUES ('ア'),('イ'),('ウ');
INSERT INTO `T8` VALUES ('あ'),('い'),('う');
INSERT INTO `T9` VALUES ('龔'),('龖'),('龗');
INSERT INTO `T10` VALUES ('ア'),('イ'),('ウ');
INSERT INTO `T11` VALUES ('あ'),('い'),('う');
INSERT INTO `T12` VALUES ('龔'),('龖'),('龗');
SELECT * FROM `T1`;
C1
SELECT * FROM `T2`;
C1
SELECT * FROM `T3`;
C1
SELECT * FROM `T4`;
C1
SELECT * FROM `T5`;
C1
SELECT * FROM `T6`;
C1
SELECT * FROM `T7`;
C1
SELECT * FROM `T8`;
C1
SELECT * FROM `T9`;
C1
SELECT * FROM `T10`;
C1
SELECT * FROM `T11`;
C1
SELECT * FROM `T12`;
C1
SHOW CREATE TABLE `T1`;
Table Create Table
T1 CREATE TABLE `T1` (
`C1` enum('ア','イ','ウ') default NULL,
KEY `C1` (`C1`)
) ENGINE=InnoDB DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T2`;
Table Create Table
T2 CREATE TABLE `T2` (
`C1` enum('あ','い','う') default NULL,
KEY `C1` (`C1`)
) ENGINE=InnoDB DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T3`;
Table Create Table
T3 CREATE TABLE `T3` (
`C1` enum('龔','龖','龗') default NULL,
KEY `C1` (`C1`)
) ENGINE=InnoDB DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T4`;
Table Create Table
T4 CREATE TABLE `T4` (
`C1` enum('ア','イ','ウ') default NULL,
KEY `C1` (`C1`)
) ENGINE=MyISAM DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T5`;
Table Create Table
T5 CREATE TABLE `T5` (
`C1` enum('あ','い','う') default NULL,
KEY `C1` (`C1`)
) ENGINE=MyISAM DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T6`;
Table Create Table
T6 CREATE TABLE `T6` (
`C1` enum('龔','龖','龗') default NULL,
KEY `C1` (`C1`)
) ENGINE=MyISAM DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T7`;
Table Create Table
T7 CREATE TABLE `T7` (
`C1` enum('ア','イ','ウ') default NULL,
KEY `C1` (`C1`)
) ENGINE=HEAP DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T8`;
Table Create Table
T8 CREATE TABLE `T8` (
`C1` enum('あ','い','う') default NULL,
KEY `C1` (`C1`)
) ENGINE=HEAP DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T9`;
Table Create Table
T9 CREATE TABLE `T9` (
`C1` enum('龔','龖','龗') default NULL,
KEY `C1` (`C1`)
) ENGINE=HEAP DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T10`;
Table Create Table
T10 CREATE TABLE `T10` (
`C1` enum('ア','イ','ウ') default NULL,
KEY `C1` (`C1`)
) ENGINE=BerkeleyDB DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T11`;
Table Create Table
T11 CREATE TABLE `T11` (
`C1` enum('あ','い','う') default NULL,
KEY `C1` (`C1`)
) ENGINE=BerkeleyDB DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T12`;
Table Create Table
T12 CREATE TABLE `T12` (
`C1` enum('龔','龖','龗') default NULL,
KEY `C1` (`C1`)
) ENGINE=BerkeleyDB DEFAULT CHARSET=ucs2
DESC `T1`;
Field Type Null Key Default Extra
C1 enum('ア','イ','ウ') YES MUL NULL
DESC `T2`;
Field Type Null Key Default Extra
C1 enum('あ','い','う') YES MUL NULL
DESC `T3`;
Field Type Null Key Default Extra
C1 enum('龔','龖','龗') YES MUL NULL
DESC `T4`;
Field Type Null Key Default Extra
C1 enum('ア','イ','ウ') YES MUL NULL
DESC `T5`;
Field Type Null Key Default Extra
C1 enum('あ','い','う') YES MUL NULL
DESC `T6`;
Field Type Null Key Default Extra
C1 enum('龔','龖','龗') YES MUL NULL
DESC `T7`;
Field Type Null Key Default Extra
C1 enum('ア','イ','ウ') YES MUL NULL
DESC `T8`;
Field Type Null Key Default Extra
C1 enum('あ','い','う') YES MUL NULL
DESC `T9`;
Field Type Null Key Default Extra
C1 enum('龔','龖','龗') YES MUL NULL
DESC `T10`;
Field Type Null Key Default Extra
C1 enum('ア','イ','ウ') YES MUL NULL
DESC `T11`;
Field Type Null Key Default Extra
C1 enum('あ','い','う') YES MUL NULL
DESC `T12`;
Field Type Null Key Default Extra
C1 enum('龔','龖','龗') YES MUL NULL
DROP TABLE `T1`;
DROP TABLE `T2`;
DROP TABLE `T3`;
DROP TABLE `T4`;
DROP TABLE `T5`;
DROP TABLE `T6`;
DROP TABLE `T7`;
DROP TABLE `T8`;
DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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