~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/t/mysqldump.test

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-21 15:31:05 UTC
  • mfrom: (1.1.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20100621153105-pbbz3t6nyrf9t2zq
Tags: upstream-5.1.48
ImportĀ upstreamĀ versionĀ 5.1.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
1983
1983
create table `load` (a varchar(255));
1984
1984
 
1985
1985
--copy_file std_data/words.dat $MYSQLTEST_VARDIR/tmp/load.txt
 
1986
--chmod 0644 $MYSQLTEST_VARDIR/tmp/load.txt
1986
1987
 
1987
1988
--exec $MYSQL_IMPORT --ignore test $MYSQLTEST_VARDIR/tmp/load.txt
1988
1989
 
2132
2133
SET NAMES default;
2133
2134
 
2134
2135
DROP TABLE t1, t2;
 
2136
###########################################################################
 
2137
 
 
2138
--echo #
 
2139
--echo # Bug #53088: mysqldump with -T & --default-character-set set
 
2140
--echo #             truncates text/blob to 766 chars
 
2141
--echo #
 
2142
--echo # Also see outfile_loaddata.test
 
2143
--echo #
 
2144
 
 
2145
CREATE TABLE t1 (a BLOB) CHARSET latin1;
 
2146
CREATE TABLE t2 LIKE t1;
 
2147
 
 
2148
let $table= t1;
 
2149
let $dir= $MYSQLTEST_VARDIR/tmp;
 
2150
let $file= $dir/$table.txt;
 
2151
let $length= 800;
 
2152
 
 
2153
--eval INSERT INTO t1 VALUES (REPEAT('.', $length))
 
2154
 
 
2155
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --default-character-set=latin1 --tab=$dir/ test $table
 
2156
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
 
2157
 
 
2158
--eval LOAD DATA INFILE '$file' INTO TABLE t2 CHARACTER SET latin1
 
2159
--remove_file $file
 
2160
 
 
2161
--echo # should be $length
 
2162
SELECT LENGTH(a) FROM t2;
 
2163
 
 
2164
DROP TABLE t1, t2;
2135
2165
 
2136
2166
###########################################################################
2137
2167
--echo #