diff options
author | unknown <monty@hundin.mysql.fi> | 2001-10-19 22:10:54 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-10-19 22:10:54 +0300 |
commit | 395782e36c4ad2c47318fc6ff21f45490582409e (patch) | |
tree | e717f4195e6b7d87809d3867302f30ea43732546 /mysql-test/t/null.test | |
parent | e427cb5e8931128c8cf3ac27720450b5fbc4353d (diff) | |
download | mariadb-git-395782e36c4ad2c47318fc6ff21f45490582409e.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.test | 15 |
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; |