summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/engines/funcs/t/de_truncate.test
blob: d0fc771ef87a2dc4af639d2b6dd618a2b423f232 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--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;