~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/myisam.test

  • Committer: Brian Aker
  • Date: 2009-08-15 00:59:30 UTC
  • mfrom: (1115.1.7 merge)
  • Revision ID: brian@gaz-20090815005930-q47yenjrq1esiwsz
Merge of Trond + Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
565
565
checksum table t2;
566
566
drop table t1, t2;
567
567
 
568
 
#
569
 
# BUG#12232: New myisam_stats_method variable.
570
 
#
571
 
# @TODO The following segfaults. Disabling for now - JRP
572
 
#
573
 
#show variables like 'myisam_stats_method';
574
 
#
575
 
#create table t1 (a int, key(a));
576
 
#insert into t1 values (0),(1),(2),(3),(4);
577
 
#insert into t1 select NULL from t1;
578
 
 
579
 
# default: NULLs considered inequal
580
 
#analyze table t1; 
581
 
#show index from t1;
582
 
#insert into t1 values (11);
583
 
#delete from t1 where a=11;
584
 
#check table t1;
585
 
#show index from t1;
586
 
 
587
 
# Set nulls to be equal:
588
 
#set myisam_stats_method=nulls_equal;
589
 
#show variables like 'myisam_stats_method';
590
 
#insert into t1 values (11);
591
 
#delete from t1 where a=11;
592
 
 
593
 
#analyze table t1; 
594
 
#show index from t1;
595
 
#
596
 
#insert into t1 values (11);
597
 
#delete from t1 where a=11;
598
 
#
599
 
#check table t1;
600
 
#show index from t1;
601
 
#
602
 
# Set nulls back to be equal 
603
 
#set myisam_stats_method=DEFAULT;
604
 
#show variables like 'myisam_stats_method';
605
 
#insert into t1 values (11);
606
 
#delete from t1 where a=11;
607
 
#
608
 
#analyze table t1; 
609
 
#show index from t1;
610
 
#
611
 
#insert into t1 values (11);
612
 
#delete from t1 where a=11;
613
 
#
614
 
#check table t1;
615
 
#show index from t1;
616
 
#
617
 
#drop table t1;
618
 
 
619
 
# WL#2609, CSC#XXXX: MyISAM 
620
 
#set myisam_stats_method=nulls_ignored;
621
 
#show variables like 'myisam_stats_method';
622
 
#
623
 
#create table t1 (
624
 
#  a char(3), b char(4), c char(5), d char(6),
625
 
#  key(a,b,c,d)
626
 
#);
627
 
#insert into t1 values ('bcd','def1', NULL, 'zz');
628
 
#insert into t1 values ('bcd','def2', NULL, 'zz');
629
 
#insert into t1 values ('bce','def1', 'yuu', NULL);
630
 
#insert into t1 values ('bce','def2', NULL, 'quux');
631
 
#analyze table t1;
632
 
#show index from t1;
633
 
#delete from t1;
634
 
#analyze table t1;
635
 
#show index from t1;
636
 
#
637
 
#set myisam_stats_method=DEFAULT;
638
 
#drop table t1;
639
 
 
640
568
# BUG#13814 - key value packed incorrectly for TINYBLOBs
641
569
 
642
570
create table t1(