~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/round.test

  • Committer: Brian Aker
  • Date: 2008-09-21 12:42:22 UTC
  • Revision ID: brian@tangent.org-20080921124222-zhjb3i0aqoz9723u
Cleanup tiny and small int.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
DROP TABLE IF EXISTS t1;
3
3
--enable_warnings
4
4
 
5
 
CREATE TABLE t1 (sint8 tinyint not null);
 
5
CREATE TABLE t1 (sint8 int not null);
6
6
INSERT INTO t1 VALUES ('0.1');
7
7
INSERT INTO t1 VALUES ('0.5');
8
8
INSERT INTO t1 VALUES ('127.4');
16
16
SELECT * FROM t1;
17
17
DROP TABLE t1;
18
18
 
19
 
CREATE TABLE t1 (uint8 tinyint unsigned not null);
 
19
CREATE TABLE t1 (uint8 int unsigned not null);
20
20
INSERT INTO t1 VALUES ('0.1');
21
21
INSERT INTO t1 VALUES ('0.5');
22
22
INSERT INTO t1 VALUES ('127.4');
29
29
DROP TABLE t1;
30
30
 
31
31
 
32
 
CREATE TABLE t1 (sint16 smallint not null);
 
32
CREATE TABLE t1 (sint16 int not null);
33
33
INSERT INTO t1 VALUES ('0.1');
34
34
INSERT INTO t1 VALUES ('0.5');
35
35
INSERT INTO t1 VALUES ('32767.4');
44
44
DROP TABLE t1;
45
45
 
46
46
 
47
 
CREATE TABLE t1 (uint16 smallint unsigned not null);
 
47
CREATE TABLE t1 (uint16 int unsigned not null);
48
48
INSERT INTO t1 VALUES ('0.1');
49
49
INSERT INTO t1 VALUES ('0.5');
50
50
INSERT INTO t1 VALUES ('32767.4');