~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/archive_aio_posix.test

  • Committer: Jay Pipes
  • Date: 2009-02-21 16:00:06 UTC
  • mto: (907.1.1 trunk-with-temporal)
  • mto: This revision was merged to the branch mainline in revision 908.
  • Revision ID: jpipes@serialcoder-20090221160006-vnk3wt4qbcz62eru
Removes the TIME column type and related time functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Simple test for archive example
3
3
# Taken FROM the select test
4
4
#
 
5
-- source include/have_archive.inc
 
6
 
5
7
--disable_warnings
6
8
DROP TABLE if exists t1,t2,t3,t4,t5,t6;
7
9
--enable_warnings
41
43
#
42
44
 
43
45
--disable_query_log
44
 
begin;
45
46
INSERT INTO t2 VALUES (1,000001,00,'Omaha','teethe','neat','');
46
47
INSERT INTO t2 VALUES (2,011401,37,'breaking','dreaded','Steinberg','W');
47
48
INSERT INTO t2 VALUES (3,011402,37,'Romans','scholastics','jarring','');
1241
1242
INSERT INTO t2 VALUES (1191,068504,00,'bonfire','corresponds','positively','');
1242
1243
INSERT INTO t2 VALUES (1192,068305,00,'Colombo','hardware','colicky','');
1243
1244
INSERT INTO t2 VALUES (1193,000000,00,'nondecreasing','implant','thrillingly','');
1244
 
commit;
1245
1245
--enable_query_log
1246
1246
 
1247
1247
#
1317
1317
INSERT INTO t2 VALUES (3,011402,37,'Romans','scholastics','jarring','');
1318
1318
INSERT INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');
1319
1319
SELECT * FROM t2;
1320
 
ALTER TABLE t2 ENGINE=ARCHIVE;
 
1320
OPTIMIZE TABLE t2;
1321
1321
SELECT * FROM t2;
1322
1322
INSERT INTO t2 VALUES (2,011401,37,'breaking','dreaded','Steinberg','W');
1323
1323
INSERT INTO t2 VALUES (3,011402,37,'Romans','scholastics','jarring','');
1324
1324
INSERT INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');
1325
 
ALTER TABLE t2 ENGINE=ARCHIVE;
 
1325
OPTIMIZE TABLE t2;
 
1326
SELECT * FROM t2;
 
1327
REPAIR TABLE t2;
1326
1328
SELECT * FROM t2;
1327
1329
 
1328
1330
#
1349
1351
SELECT * FROM t2;
1350
1352
 
1351
1353
 
 
1354
# Test INSERT DELAYED and wait until the table has one more record
 
1355
SELECT COUNT(auto) FROM t2;
 
1356
INSERT DELAYED INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');
 
1357
while (`SELECT COUNT(auto)!=1214 FROM t2`)
 
1358
{
 
1359
  sleep 0.1;
 
1360
}
 
1361
SELECT COUNT(auto) FROM t2;
 
1362
 
1352
1363
# Adding test for ALTER TABLE
1353
1364
ALTER TABLE t2 DROP COLUMN fld6; 
1354
1365
SHOW CREATE TABLE t2;
1401
1412
INSERT INTO t5 VALUES (3, "foo");
1402
1413
INSERT INTO t5 VALUES (NULL, "foo");
1403
1414
SELECT * FROM t5;
1404
 
ALTER TABLE t5 ENGINE=ARCHIVE;
 
1415
OPTIMIZE TABLE t5;
1405
1416
SELECT * FROM t5;
1406
1417
 
1407
1418
SELECT * FROM t5 WHERE a=32;
1533
1544
--enable_warnings
1534
1545
 
1535
1546
#
 
1547
# BUG#26138 - REPAIR TABLE with option USE_FRM erases all records in ARCHIVE
 
1548
#             table
 
1549
#
 
1550
create table t1 (i int) engine=archive;
 
1551
insert into t1 values (1);
 
1552
repair table t1 use_frm;
 
1553
select * from t1;
 
1554
drop table t1;
 
1555
 
 
1556
#
1536
1557
# BUG#29207 - archive table reported as corrupt by check table
1537
1558
#
1538
1559
create table t1(a longblob) engine=archive;
1539
1560
insert into t1 set a='';
1540
1561
insert into t1 set a='a';
1541
 
check table t1;
 
1562
check table t1 extended;
1542
1563
drop table t1;
1543
 
 
1544
 
SET GLOBAL archive_aio=OFF;
1545
 
SHOW VARIABLES LIKE "archive_%";
1546