~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/broken/t/myisam.test

  • Committer: Jay Pipes
  • Date: 2008-12-19 21:34:33 UTC
  • mto: This revision was merged to the branch mainline in revision 729.
  • Revision ID: jpipes@serialcoder-20081219213433-x9wc07ts0bubd5jb
OLAP test now fixed.  We throw a syntax error upon seeing WITH CUBE, not
a "We don't support this yet" error.  Other than that, only minor
SQL syntax fixes and removal of VIEW-specific stuff.

MyISAM.test slowly working through.  Hit a bug in REPAIR TABLE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
enable_query_log;
47
47
check table t1;
48
48
repair table t1;
49
 
delete from t1 where (a & 1);
 
49
 
 
50
# @TODO Because there are no notes on what the heck this
 
51
# is actually testing (which bug?), it's difficult to tell
 
52
# what the below DELETE statement is doing.  Since we don't
 
53
# support bitwise operators, I am replacing the delete statement
 
54
# with a version we support.
 
55
#delete from t1 where (a & 1);
 
56
delete from t1 where (a mod 2) = 1;
50
57
check table t1;
51
58
repair table t1;
52
59
check table t1;
257
264
int, i975 int, i976 int, i977 int, i978 int, i979 int, i980 int, i981 int, i982
258
265
int, i983 int, i984 int, i985 int, i986 int, i987 int, i988 int, i989 int, i990
259
266
int, i991 int, i992 int, i993 int, i994 int, i995 int, i996 int, i997 int, i998
260
 
int, i999 int, i1000 int, b blob) row_format=dynamic;
 
267
int, i999 int, i1000 int, b blob) engine=myisam row_format=dynamic;
261
268
insert into t1 values (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
262
269
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
263
270
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
309
316
# Test of REPAIR that once failed
310
317
#
311
318
CREATE TABLE `t1` (
312
 
  `post_id` mediumint(8) NOT NULL auto_increment,
313
 
  `topic_id` mediumint(8) NOT NULL default '0',
 
319
  `post_id` int NOT NULL auto_increment,
 
320
  `topic_id` int NOT NULL default '0',
314
321
  `post_time` datetime NOT NULL default '0000-00-00 00:00:00',
315
322
  `post_text` text NOT NULL,
316
323
  `icon_url` varchar(10) NOT NULL default '',
317
 
  `sign` int(1) NOT NULL default '0',
 
324
  `sign` int NOT NULL default '0',
318
325
  `post_edit` varchar(150) NOT NULL default '',
319
326
  `poster_login` varchar(35) NOT NULL default '',
320
327
  `ip` varchar(15) NOT NULL default '',
322
329
  KEY `post_time` (`post_time`),
323
330
  KEY `ip` (`ip`),
324
331
  KEY `poster_login` (`poster_login`),
325
 
  KEY `topic_id` (`topic_id`),
326
 
  FULLTEXT KEY `post_text` (`post_text`)
 
332
  KEY `topic_id` (`topic_id`)
 
333
#  FULLTEXT KEY `post_text` (`post_text`)
327
334
) ENGINE=MyISAM;
328
335
 
329
336
INSERT INTO t1 (post_text) VALUES ('ceci est un test'),('ceci est un test'),('ceci est un test'),('ceci est un test'),('ceci est un test');
330
337
 
331
 
REPAIR TABLE t1;
 
338
# @TODO The REPAIR TABLE statement crashes server.
 
339
# Bug#309802: https://bugs.launchpad.net/drizzle/+bug/309802
 
340
# Commenting it out for now to proceed in testing. - JRP
 
341
# REPAIR TABLE t1;
332
342
CHECK TABLE t1;
333
343
drop table t1;
334
344
 
371
381
create table t1 (a int not null auto_increment primary key, b varchar(255));
372
382
insert into t1 (b) values (repeat('a',100)),(repeat('b',100)),(repeat('c',100));
373
383
update t1 set b=repeat(left(b,1),200) where a=1;
374
 
delete from t1 where (a & 1)= 0;
 
384
 
 
385
# @TODO Because there are no notes on what the heck this
 
386
# is actually testing (which bug?), it's difficult to tell
 
387
# what the below DELETE statement is doing.  Since we don't
 
388
# support bitwise operators, I am replacing the delete statement
 
389
# with a version we support.
 
390
#delete from t1 where (a & 1)= 0;
 
391
delete from t1 where (a mod 2) = 0;
375
392
update t1 set b=repeat('e',200) where a=1;
376
393
flush tables;
377
394
check table t1;
384
401
let $1 = 100;
385
402
while ($1)
386
403
{
387
 
  eval insert into t1 (b) values (repeat(char(($1 & 32)+65), $1));
 
404
  eval insert into t1 (b) values (repeat(char
 
405
    (
 
406
      if($1 < 32, 0, 
 
407
        if($1 >= 64 and $1 <= 95, 0, 32)
 
408
      )
 
409
    +65), $1));
388
410
  dec $1;
389
411
}
390
412
enable_query_log;
738
760
#
739
761
# Test OPTIMIZE. This creates a new data file.
740
762
CREATE TABLE t1 (
741
 
  `_id` int(11) NOT NULL default '0',
 
763
  `_id` int NOT NULL default '0',
742
764
  `url` text,
743
765
  `email` text,
744
766
  `description` text,
745
 
  `loverlap` int(11) default NULL,
746
 
  `roverlap` int(11) default NULL,
747
 
  `lneighbor_id` int(11) default NULL,
748
 
  `rneighbor_id` int(11) default NULL,
749
 
  `length_` int(11) default NULL,
 
767
  `loverlap` int default NULL,
 
768
  `roverlap` int default NULL,
 
769
  `lneighbor_id` int default NULL,
 
770
  `rneighbor_id` int default NULL,
 
771
  `length_` int default NULL,
750
772
  `sequence` mediumtext,
751
773
  `name` text,
752
774
  `_obj_class` text NOT NULL,
780
802
#
781
803
# Test REPAIR QUICK. This retains the old data file.
782
804
CREATE TABLE t1 (
783
 
  `_id` int(11) NOT NULL default '0',
 
805
  `_id` int NOT NULL default '0',
784
806
  `url` text,
785
807
  `email` text,
786
808
  `description` text,
787
 
  `loverlap` int(11) default NULL,
788
 
  `roverlap` int(11) default NULL,
789
 
  `lneighbor_id` int(11) default NULL,
790
 
  `rneighbor_id` int(11) default NULL,
791
 
  `length_` int(11) default NULL,
 
809
  `loverlap` int default NULL,
 
810
  `roverlap` int default NULL,
 
811
  `lneighbor_id` int default NULL,
 
812
  `rneighbor_id` int default NULL,
 
813
  `length_` int default NULL,
792
814
  `sequence` mediumtext,
793
815
  `name` text,
794
816
  `_obj_class` text NOT NULL,