mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
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'
This commit is contained in:
parent
6f2d56162b
commit
253b9ecb11
8 changed files with 58 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue