49
delete from t1 where (a & 1);
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;
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
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`),
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`)
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');
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
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;
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;
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',
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,
752
774
`_obj_class` text NOT NULL,
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',
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,
794
816
`_obj_class` text NOT NULL,