Bug#30843 Bad Test addition to t/archive.test

parent b6708a97
...@@ -11123,8 +11123,8 @@ auto fld1 companynr fld3 fld4 fld5 fld6 ...@@ -11123,8 +11123,8 @@ auto fld1 companynr fld3 fld4 fld5 fld6
SELECT COUNT(auto) FROM t2; SELECT COUNT(auto) FROM t2;
COUNT(auto) COUNT(auto)
1213 1213
INSERT DELAYED INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily',''); INSERT DELAYED INTO t2 VALUES (99999,011403,37,'the','delayed','insert','');
INSERT INTO t2 VALUES (5,000001,00,'after','delayed','insert',''); INSERT INTO t2 VALUES (100000,000001,00,'after','delayed','insert','');
SELECT COUNT(auto) FROM t2; SELECT COUNT(auto) FROM t2;
COUNT(auto) COUNT(auto)
1215 1215
...@@ -11139,7 +11139,7 @@ t2 CREATE TABLE `t2` ( ...@@ -11139,7 +11139,7 @@ t2 CREATE TABLE `t2` (
`fld4` char(35) NOT NULL default '', `fld4` char(35) NOT NULL default '',
`fld5` char(35) NOT NULL default '' `fld5` char(35) NOT NULL default ''
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1 ) ENGINE=ARCHIVE DEFAULT CHARSET=latin1
SELECT * from t2; SELECT * from t2 WHERE auto != 100000;
auto fld1 companynr fld3 fld4 fld5 auto fld1 companynr fld3 fld4 fld5
1 000001 00 Omaha teethe neat 1 000001 00 Omaha teethe neat
2 011401 37 breaking dreaded Steinberg 2 011401 37 breaking dreaded Steinberg
...@@ -12354,8 +12354,7 @@ auto fld1 companynr fld3 fld4 fld5 ...@@ -12354,8 +12354,7 @@ auto fld1 companynr fld3 fld4 fld5
2 011401 37 breaking dreaded Steinberg 2 011401 37 breaking dreaded Steinberg
3 011402 37 Romans scholastics jarring 3 011402 37 Romans scholastics jarring
4 011403 37 intercepted audiology tinily 4 011403 37 intercepted audiology tinily
4 011403 37 intercepted audiology tinily 99999 011403 37 the delayed insert
5 000001 00 after delayed insert
drop table t1, t2, t4; drop table t1, t2, t4;
create table t1 (i int) engine=archive; create table t1 (i int) engine=archive;
insert into t1 values (1); insert into t1 values (1);
......
...@@ -1347,13 +1347,13 @@ SELECT * FROM t2; ...@@ -1347,13 +1347,13 @@ SELECT * FROM t2;
# Test INSERT DELAYED and wait until the table has one more record # Test INSERT DELAYED and wait until the table has one more record
SELECT COUNT(auto) FROM t2; SELECT COUNT(auto) FROM t2;
INSERT DELAYED INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily',''); INSERT DELAYED INTO t2 VALUES (99999,011403,37,'the','delayed','insert','');
# Insert another record since in Archive delayed values are only # Insert another record since in Archive delayed values are only
# guaranteed to materialize based on either: # guaranteed to materialize based on either:
# 1) A new row showing up from a normal insert # 1) A new row showing up from a normal insert
# 2) A flush table has occurred. # 2) A flush table has occurred.
INSERT INTO t2 VALUES (5,000001,00,'after','delayed','insert',''); INSERT INTO t2 VALUES (100000,000001,00,'after','delayed','insert','');
# Wait for the delayed insert to appear # Wait for the delayed insert to appear
while (`SELECT COUNT(auto)!=1215 FROM t2`) while (`SELECT COUNT(auto)!=1215 FROM t2`)
...@@ -1365,7 +1365,7 @@ SELECT COUNT(auto) FROM t2; ...@@ -1365,7 +1365,7 @@ SELECT COUNT(auto) FROM t2;
# Adding test for alter table # Adding test for alter table
ALTER TABLE t2 DROP COLUMN fld6; ALTER TABLE t2 DROP COLUMN fld6;
SHOW CREATE TABLE t2; SHOW CREATE TABLE t2;
SELECT * from t2; SELECT * from t2 WHERE auto != 100000;
# #
# Cleanup, test is over # Cleanup, test is over
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment