~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/myisam.result

  • Committer: devananda
  • Date: 2009-06-30 14:27:54 UTC
  • mfrom: (1030.2.4 trunk)
  • mto: (1093.1.7 captain)
  • mto: This revision was merged to the branch mainline in revision 1095.
  • Revision ID: devananda.vdv@gmail.com-20090630142754-vm9w374yxkf1pikc
mergeĀ fromĀ lp

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
check table t1;
19
19
Table   Op      Msg_type        Msg_text
20
20
test.t1 check   status  OK
21
 
repair table t1;
22
 
Table   Op      Msg_type        Msg_text
23
 
test.t1 repair  note    The storage engine for the table doesn't support repair
24
21
delete from t1 where (a mod 2) = 1;
25
22
check table t1;
26
23
Table   Op      Msg_type        Msg_text
27
24
test.t1 check   status  OK
28
 
repair table t1;
29
 
Table   Op      Msg_type        Msg_text
30
 
test.t1 repair  note    The storage engine for the table doesn't support repair
31
 
check table t1;
32
 
Table   Op      Msg_type        Msg_text
33
 
test.t1 check   status  OK
34
25
drop table t1;
35
26
create table t1 (a int not null auto_increment, b int not null, primary key (a), index(b));
36
27
insert into t1 (b) values (1),(2),(2),(2),(2);
394
385
check table t1;
395
386
Table   Op      Msg_type        Msg_text
396
387
test.t1 check   status  OK
397
 
repair table t1;
398
 
Table   Op      Msg_type        Msg_text
399
 
test.t1 repair  note    The storage engine for the table doesn't support repair
400
388
select concat(a,'.') from t1 where a='aaa';
401
389
concat(a,'.')
402
390
aaa   .
681
669
8
682
670
9
683
671
DROP TABLE t1;
684
 
CREATE TABLE t1 (
685
 
`_id` int NOT NULL default '0',
686
 
`url` text,
687
 
`email` text,
688
 
`description` text,
689
 
`loverlap` int default NULL,
690
 
`roverlap` int default NULL,
691
 
`lneighbor_id` int default NULL,
692
 
`rneighbor_id` int default NULL,
693
 
`length_` int default NULL,
694
 
`sequence` text,
695
 
`name` text,
696
 
`_obj_class` text NOT NULL,
697
 
PRIMARY KEY  (`_id`),
698
 
UNIQUE KEY `sequence_name_index` (`name`(50)),
699
 
KEY (`length_`)
700
 
) ENGINE=MyISAM;
701
 
INSERT INTO t1 VALUES
702
 
(1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample1',''),
703
 
(2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample2',''),
704
 
(3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample3',''),
705
 
(4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample4',''),
706
 
(5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample5',''),
707
 
(6,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample6',''),
708
 
(7,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample7',''),
709
 
(8,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample8',''),
710
 
(9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sample9','');
711
 
SELECT _id FROM t1;
712
 
_id
713
 
1
714
 
2
715
 
3
716
 
4
717
 
5
718
 
6
719
 
7
720
 
8
721
 
9
722
 
DELETE FROM t1 WHERE _id < 8;
723
 
SHOW TABLE STATUS LIKE 't1';
724
 
Name    Engine  Version Row_format      Rows    Avg_row_length  Data_length     Max_data_length Index_length    Data_free       Auto_increment  Create_time     Update_time     Check_time      Collation       Checksum        Create_options  Comment
725
 
t1      MyISAM  0       Dynamic 2       #       #       #       #       168     #       #       #       #       #       #               
726
 
CHECK TABLE t1 EXTENDED;
727
 
Table   Op      Msg_type        Msg_text
728
 
test.t1 check   status  OK
729
 
REPAIR TABLE t1 QUICK;
730
 
Table   Op      Msg_type        Msg_text
731
 
test.t1 repair  status  OK
732
 
CHECK TABLE t1 EXTENDED;
733
 
Table   Op      Msg_type        Msg_text
734
 
test.t1 check   status  OK
735
 
SHOW TABLE STATUS LIKE 't1';
736
 
Name    Engine  Version Row_format      Rows    Avg_row_length  Data_length     Max_data_length Index_length    Data_free       Auto_increment  Create_time     Update_time     Check_time      Collation       Checksum        Create_options  Comment
737
 
t1      MyISAM  0       Dynamic 2       #       #       #       #       168     #       #       #       #       #       #               
738
 
SELECT _id FROM t1;
739
 
_id
740
 
8
741
 
9
742
 
DROP TABLE t1;
743
672
SET GLOBAL myisam_repair_threads=1;
744
673
SHOW VARIABLES LIKE 'myisam_repair%';
745
674
Variable_name   Value
1783
1712
CHECK TABLE t1;
1784
1713
Table   Op      Msg_type        Msg_text
1785
1714
test.t1 check   status  OK
1786
 
REPAIR TABLE t1;
1787
 
Table   Op      Msg_type        Msg_text
1788
 
test.t1 repair  status  OK
1789
1715
DELETE FROM t1 WHERE c1 >= 10;
1790
1716
CHECK TABLE t1;
1791
1717
Table   Op      Msg_type        Msg_text
1802
1728
CHECK TABLE t1;
1803
1729
Table   Op      Msg_type        Msg_text
1804
1730
test.t1 check   status  OK
1805
 
REPAIR TABLE t1;
1806
 
Table   Op      Msg_type        Msg_text
1807
 
test.t1 repair  status  OK
1808
1731
SELECT COUNT(*) FROM t1;
1809
1732
COUNT(*)
1810
1733
1
1823
1746
CHECK TABLE t1 EXTENDED;
1824
1747
Table   Op      Msg_type        Msg_text
1825
1748
test.t1 check   status  OK
1826
 
REPAIR TABLE t1 EXTENDED;
1827
 
Table   Op      Msg_type        Msg_text
1828
 
test.t1 repair  status  OK
1829
1749
SELECT COUNT(*) FROM t1;
1830
1750
COUNT(*)
1831
1751
1
1883
1803
CHECK TABLE t1;
1884
1804
Table   Op      Msg_type        Msg_text
1885
1805
test.t1 check   status  OK
1886
 
REPAIR TABLE t1;
1887
 
Table   Op      Msg_type        Msg_text
1888
 
test.t1 repair  status  OK
1889
1806
SELECT COUNT(*) FROM t1;
1890
1807
COUNT(*)
1891
1808
1
1904
1821
CHECK TABLE t1 EXTENDED;
1905
1822
Table   Op      Msg_type        Msg_text
1906
1823
test.t1 check   status  OK
1907
 
REPAIR TABLE t1 EXTENDED;
1908
 
Table   Op      Msg_type        Msg_text
1909
 
test.t1 repair  status  OK
1910
1824
SELECT COUNT(*) FROM t1;
1911
1825
COUNT(*)
1912
1826
1