summaryrefslogtreecommitdiff
path: root/mysql-test/t/null.test
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-10-19 22:10:54 +0300
committerunknown <monty@hundin.mysql.fi>2001-10-19 22:10:54 +0300
commit253b9ecb1113131de67df7b8e1b2413a5ee113bb (patch)
treee717f4195e6b7d87809d3867302f30ea43732546 /mysql-test/t/null.test
parent6f2d56162b2b3c1117780ddc2686a5369bd172db (diff)
downloadmariadb-git-253b9ecb1113131de67df7b8e1b2413a5ee113bb.tar.gz
Don't use signal() on windows.
Added missing InnoDB variables to SHOW VARIABLES. Fixed bug when doing WHERE 'column_name=NULL' on an indexed column that had NULL values. Fixed bug when doing 'LEFT JOIN ... ON (column_name = constant) WHERE column_name = constant' Docs/manual.texi: Changelog libmysql/libmysql.c: Don't use signal() on windows. mysql-test/r/join_outer.result: Test for bugfix mysql-test/r/null.result: Test for bugfix mysql-test/t/join_outer.test: Test for bugfix mysql-test/t/null.test: Test for bugfix sql/mysqld.cc: Add missing InnoDB variables to SHOW VARIABLES. sql/sql_select.cc: Fixed bug when doing WHERE 'column_name=NULL' on an indexed column that had NULL values. Fixed bug when doing 'LEFT JOIN ... ON (column_name = constant) WHERE column_name = constant'
Diffstat (limited to 'mysql-test/t/null.test')
-rw-r--r--mysql-test/t/null.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/t/null.test b/mysql-test/t/null.test
index f1fe2cf2c9f..a010ab38e07 100644
--- a/mysql-test/t/null.test
+++ b/mysql-test/t/null.test
@@ -20,3 +20,18 @@ create table t1 (x int);
insert into t1 values (null);
select * from t1 where x != 0;
drop table t1;
+
+#
+# Test problem med index on NULL columns and testing with =NULL;
+#
+
+DROP TABLE IF EXISTS t1;
+CREATE TABLE t1 (
+ indexed_field int default NULL,
+ KEY indexed_field (indexed_field)
+);
+INSERT INTO t1 VALUES (NULL),(NULL);
+SELECT * FROM t1 WHERE indexed_field=NULL;
+SELECT * FROM t1 WHERE indexed_field IS NULL;
+SELECT * FROM t1 WHERE indexed_field<=>NULL;
+DROP TABLE t1;