~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/archive.test

  • Committer: Stewart Smith
  • Date: 2008-09-15 07:13:59 UTC
  • mfrom: (383.1.21 drizzle)
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: stewart@flamingspork.com-20080915071359-f8bznznyaiqrtqxa
merged

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
SHOW VARIABLES LIKE "archive_%";
15
15
 
16
16
CREATE TABLE t1 (
17
 
  Period smallint(4) unsigned zerofill DEFAULT '0000' NOT NULL,
18
 
  Varor_period smallint(4) unsigned DEFAULT '0' NOT NULL
 
17
  Period smallint unsigned DEFAULT '0000' NOT NULL,
 
18
  Varor_period smallint unsigned DEFAULT '0' NOT NULL
19
19
) ENGINE=archive;
20
20
 
21
21
INSERT INTO t1 VALUES (9410,9412);
30
30
 
31
31
CREATE TABLE t2 (
32
32
  auto int,
33
 
  fld1 int(6) unsigned zerofill DEFAULT '000000' NOT NULL,
34
 
  companynr tinyint(2) unsigned zerofill DEFAULT '00' NOT NULL,
 
33
  fld1 int unsigned DEFAULT '000000' NOT NULL,
 
34
  companynr tinyint unsigned DEFAULT '00' NOT NULL,
35
35
  fld3 char(30) DEFAULT '' NOT NULL,
36
36
  fld4 char(35) DEFAULT '' NOT NULL,
37
37
  fld5 char(35) DEFAULT '' NOT NULL,
1302
1302
select * FROM t3 where fld3='bonfire';
1303
1303
select count(*) FROM t3;
1304
1304
# Clean up path in error message
1305
 
--replace_result $MYSQL_TEST_DIR . /var/master-data/ /
 
1305
--replace_result $DRIZZLE_TEST_DIR . /var/master-data/ /
1306
1306
rename table t3 to t4;
1307
1307
select * FROM t4 where fld3='bonfire';
1308
1308
select count(*) FROM t4;
1378
1378
# First the simple stuff
1379
1379
 
1380
1380
CREATE TABLE `t5` (
1381
 
`a` int(11) NOT NULL auto_increment,
 
1381
`a` int NOT NULL auto_increment,
1382
1382
b char(12),
1383
1383
PRIMARY KEY  (`a`)
1384
1384
)  DEFAULT CHARSET=latin1;
1403
1403
DROP TABLE t5;
1404
1404
 
1405
1405
CREATE TABLE `t5` (
1406
 
`a` int(11) NOT NULL auto_increment,
 
1406
`a` int NOT NULL auto_increment,
1407
1407
b char(12),
1408
1408
KEY  (`a`)
1409
1409
)  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5;
1429
1429
DROP TABLE t5;
1430
1430
 
1431
1431
CREATE TABLE `t5` (
1432
 
`a` int(11) NOT NULL auto_increment,
 
1432
`a` int NOT NULL auto_increment,
1433
1433
b blob(12),
1434
1434
KEY  (`a`)
1435
1435
)  DEFAULT CHARSET=latin1;
1456
1456
DROP TABLE t5;
1457
1457
 
1458
1458
CREATE TABLE `t5` (
1459
 
`a` int(11) NOT NULL auto_increment,
 
1459
`a` int NOT NULL auto_increment,
1460
1460
b blob(12),
1461
1461
c blob(12),
1462
1462
KEY  (`a`)
1501
1501
DROP TABLE t5;
1502
1502
 
1503
1503
CREATE TABLE `t5` (
1504
 
`a` int(11) NOT NULL auto_increment,
 
1504
`a` int NOT NULL auto_increment,
1505
1505
b varchar(250),
1506
1506
c varchar(800),
1507
1507
KEY  (`a`)
1519
1519
SELECT * FROM t5;
1520
1520
 
1521
1521
CREATE TABLE `t6` (
1522
 
`a` int(11) NOT NULL auto_increment,
 
1522
`a` int NOT NULL auto_increment,
1523
1523
b blob(12),
1524
1524
c int,
1525
1525
KEY  (`a`)