diff options
author | unknown <patg@krsna.patg.net> | 2005-10-25 14:50:08 -0700 |
---|---|---|
committer | unknown <patg@krsna.patg.net> | 2005-10-25 14:50:08 -0700 |
commit | cf59103d84e648467f8c95d4804e498b7113e61a (patch) | |
tree | b9e9fc25eb2089d7eb1203f1ca85615abe5a37fe /client | |
parent | 28421fe8ed9d2869b74b53f7732877e41b78440a (diff) | |
download | mariadb-git-cf59103d84e648467f8c95d4804e498b7113e61a.tar.gz |
BUG# 12123
Made change to mysqlimport to set character_set_database to binary to
make importing various charsets/columns work correctly.
client/mysqlimport.c:
BUG# 12123
Added 'set @@character_set_database=binary' to make loading of tables with
mixed charset types and non-latin characters load.
mysql-test/mysql-test-run.pl:
BUG #12123
Added $MYSQL_IMPORT in order to test mysqlimport bug.
mysql-test/mysql-test-run.sh:
BUG #12123
Added $MYSQL_IMPORT in order to test mysqlimport bug.
mysql-test/r/mysqldump.result:
BUG #12123
Added dumping and reloading (using mysql, mysqldump, and mysqlimport) to
show that this fix handles dumping and reloading of non-latin1 charsets
in table with different charset columns (mixing of charsets, also can be a
UTF table with latin1 tables). Note the select before and after dump and
restore - should be exact.
mysql-test/t/mysqldump.test:
BUG #12123
Added dumping and reloading (using mysql, mysqldump, and mysqlimport) to
show that this fix handles dumping and reloading of non-latin1 charsets
in table with different charset columns (mixing of charsets, also can be a
UTF table with latin1 tables). Note the select before and after dump and
restore - should be exact. (results of this)
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqlimport.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c index ca4acd82db6..32e2a7ccffe 100644 --- a/client/mysqlimport.c +++ b/client/mysqlimport.c @@ -517,6 +517,13 @@ int main(int argc, char **argv) free_defaults(argv_to_free); return(1); /* purecov: deadcode */ } + + if (mysql_query(sock, "set @@character_set_database=binary;")) + { + db_error(sock); /* We shall countinue here, if --force was given */ + return(1); + } + if (lock_tables) lock_table(sock, argc, argv); for (; *argv != NULL; argv++) |