~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/csv.test

  • Committer: Brian Aker
  • Date: 2008-11-04 15:39:09 UTC
  • mfrom: (575.1.2 devel)
  • Revision ID: brian@tangent.org-20081104153909-c72hn65udxs1ccal
Merge of Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
--enable_warnings
14
14
 
15
15
CREATE TABLE t1 (
16
 
  Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
17
 
  Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
 
16
  Period int(4) zerofill DEFAULT '0000' NOT NULL,
 
17
  Varor_period int(4) DEFAULT '0' NOT NULL
18
18
) ENGINE = CSV;
19
19
 
20
20
INSERT INTO t1 VALUES (9410,9412);
29
29
 
30
30
CREATE TABLE t2 (
31
31
  auto int not null,
32
 
  fld1 int(6) unsigned zerofill DEFAULT '000000' NOT NULL,
33
 
  companynr tinyint(2) unsigned zerofill DEFAULT '00' NOT NULL,
 
32
  fld1 int(6) zerofill DEFAULT '000000' NOT NULL,
 
33
  companynr int(2) zerofill DEFAULT '00' NOT NULL,
34
34
  fld3 char(30) DEFAULT '' NOT NULL,
35
35
  fld4 char(35) DEFAULT '' NOT NULL,
36
36
  fld5 char(35) DEFAULT '' NOT NULL,
1304
1304
 
1305
1305
DROP TABLE t1;
1306
1306
CREATE TABLE t1 (
1307
 
  Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
1308
 
  Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
 
1307
  Period int(4) zerofill DEFAULT '0000' NOT NULL,
 
1308
  Varor_period int(4) DEFAULT '0' NOT NULL
1309
1309
) ENGINE = CSV;
1310
1310
 
1311
1311
INSERT INTO t1 VALUES (9410,9412);
1439
1439
 
1440
1440
CREATE TABLE test_repair_table4 (
1441
1441
  num int not null,
1442
 
  magic_no int(4) unsigned zerofill DEFAULT '0000' NOT NULL,
 
1442
  magic_no int(4) zerofill DEFAULT '0000' NOT NULL,
1443
1443
  company_name char(30) DEFAULT '' NOT NULL,
1444
1444
  founded char(4) DEFAULT '' NOT NULL
1445
1445
) ENGINE = CSV;
1471
1471
 
1472
1472
CREATE TABLE test_repair_table5 (
1473
1473
  num int not null,
1474
 
  magic_no int(4) unsigned zerofill DEFAULT '0000' NOT NULL,
 
1474
  magic_no int(4) zerofill DEFAULT '0000' NOT NULL,
1475
1475
  company_name char(30) DEFAULT '' NOT NULL,
1476
1476
  founded char(4) DEFAULT '' NOT NULL
1477
1477
) ENGINE = CSV;