~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/t/group_min_max.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-05-11 18:47:32 UTC
  • mto: (2.1.2 sid) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100511184732-jhn055kfhxze24kt
Tags: upstream-5.1.46
ImportĀ upstreamĀ versionĀ 5.1.46

Show diffs side-by-side

added added

removed removed

Lines of Context:
1054
1054
SELECT a FROM t1 WHERE b=1;
1055
1055
DROP TABLE t1;
1056
1056
 
 
1057
--echo # 
 
1058
--echo # Bug#47762: Incorrect result from MIN() when WHERE tests NOT NULL column
 
1059
--echo #            for NULL
 
1060
--echo #
 
1061
 
 
1062
--echo ## Test for NULLs allowed
 
1063
CREATE TABLE t1 ( a INT, KEY (a) );
 
1064
INSERT INTO t1 VALUES (1), (2), (3);
 
1065
--source include/min_null_cond.inc
 
1066
INSERT INTO t1 VALUES (NULL), (NULL);
 
1067
--source include/min_null_cond.inc
 
1068
DROP TABLE t1;
 
1069
 
 
1070
--echo ## Test for NOT NULLs
 
1071
CREATE TABLE t1 ( a INT NOT NULL PRIMARY KEY);
 
1072
INSERT INTO t1 VALUES (1), (2), (3);
 
1073
--echo #
 
1074
--echo # NULL-safe operator test disabled for non-NULL indexed columns.
 
1075
--echo #
 
1076
--echo # See bugs
 
1077
--echo #
 
1078
--echo # - Bug#52173: Reading NULL value from non-NULL index gives
 
1079
--echo #   wrong result in embedded server 
 
1080
--echo #
 
1081
--echo # - Bug#52174: Sometimes wrong plan when reading a MAX value from 
 
1082
--echo #   non-NULL index
 
1083
--echo #
 
1084
--let $skip_null_safe_test= 1
 
1085
--source include/min_null_cond.inc
 
1086
DROP TABLE t1;
 
1087
 
1057
1088
--echo End of 5.1 tests