~michaeleguo/ubuntu/trusty/percona-xtradb-cluster-5.5/arm64fix

« back to all changes in this revision

Viewing changes to mysql-test/suite/engines/funcs/t/ld_bit.test

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-10 14:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20140210144423-f2134l2gxuvq2m6l
Tags: upstream-5.5.34-25.9+dfsg
ImportĀ upstreamĀ versionĀ 5.5.34-25.9+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--disable_warnings
 
2
DROP TABLE IF EXISTS t1;
 
3
--enable_warnings
 
4
CREATE TABLE t1 (c1 BIT(10) NOT NULL PRIMARY KEY, c2 VARCHAR(10), c3 DATETIME);
 
5
LOAD DATA LOCAL INFILE 'suite/engines/funcs/t/load_bit.inc' INTO TABLE t1 FIELDS TERMINATED BY ',' ENCLOSED BY '\'' LINES TERMINATED BY '\n' (@var1,c2,c3) SET c1= CAST(@var1 AS SIGNED);
 
6
SELECT CAST(c1 AS SIGNED),c2,c3 INTO OUTFILE '../../tmp/t1.dat' FIELDS ENCLOSED BY '\'' FROM t1;
 
7
SELECT BIN(c1),c2,c3 FROM t1;
 
8
TRUNCATE TABLE t1;
 
9
LOAD DATA INFILE '../../tmp/t1.dat' INTO TABLE t1 FIELDS ENCLOSED BY '\'' (@var1,c2,c3) SET c1= CAST(@var1 AS SIGNED);
 
10
#SELECT * FROM t1 ORDER BY c1;
 
11
SELECT BIN(c1),c2,c3 FROM t1;
 
12
remove_file $MYSQLTEST_VARDIR/tmp/t1.dat;
 
13
DROP TABLE t1;
 
14