mariadb/mysql-test/suite/engines/funcs/t/de_truncate.test
Omer BarNir c92b9b7315 Test suites for engine testing, moved from test-extra so will be available
for general use.


mysql-test/Makefile.am:
  Adding directories of additional test suites
mysql-test/mysql-stress-test.pl:
  Adding check for additional errors checking during test run
2010-03-17 23:42:07 -07:00

44 lines
1.5 KiB
Text

--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
CREATE TABLE t1(c1 CHAR(10) NOT NULL);
INSERT INTO t1 (c1) VALUES('a'),('aaa'),('b'),('b'),('bb'),('bbb'),('c');
TRUNCATE t1 ;
SELECT * FROM t1 ORDER BY c1;
DROP TABLE t1;
CREATE TABLE t1(c1 VARCHAR(10) NOT NULL);
INSERT INTO t1 (c1) VALUES('a'),('aaa'),('b'),('b'),('bb'),('bbb'),('c');
TRUNCATE t1 ;
SELECT * FROM t1 ORDER BY c1;
DROP TABLE t1;
CREATE TABLE t1(c1 BINARY(10) NOT NULL);
INSERT INTO t1 (c1) VALUES('a'),('aaa'),('b'),('b'),('bb'),('bbb'),('c');
TRUNCATE t1 ;
SELECT * FROM t1 ORDER BY c1;
DROP TABLE t1;
CREATE TABLE t1(c1 VARBINARY(10) NOT NULL);
INSERT INTO t1 (c1) VALUES('a'),('aaa'),('b'),('b'),('bb'),('bbb'),('c');
TRUNCATE t1 ;
SELECT * FROM t1 ORDER BY c1;
DROP TABLE t1;
CREATE TABLE t1(c1 CHAR(10) NOT NULL);
INSERT INTO t1 (c1) VALUES('a'),('aaa'),('b'),('b'),('bb'),('bbb'),('c');
TRUNCATE TABLE t1 ;
SELECT * FROM t1 ORDER BY c1;
DROP TABLE t1;
CREATE TABLE t1(c1 VARCHAR(10) NOT NULL);
INSERT INTO t1 (c1) VALUES('a'),('aaa'),('b'),('b'),('bb'),('bbb'),('c');
TRUNCATE TABLE t1 ;
SELECT * FROM t1 ORDER BY c1;
DROP TABLE t1;
CREATE TABLE t1(c1 BINARY(10) NOT NULL);
INSERT INTO t1 (c1) VALUES('a'),('aaa'),('b'),('b'),('bb'),('bbb'),('c');
TRUNCATE TABLE t1 ;
SELECT * FROM t1 ORDER BY c1;
DROP TABLE t1;
CREATE TABLE t1(c1 VARBINARY(10) NOT NULL);
INSERT INTO t1 (c1) VALUES('a'),('aaa'),('b'),('b'),('bb'),('bbb'),('c');
TRUNCATE TABLE t1 ;
SELECT * FROM t1 ORDER BY c1;
DROP TABLE t1;