1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-20 13:13:59 +03:00
Gleb Shchepa e000e4a2a2 Bug #37761: IN handles NULL differently for table-subquery
and value-list

The server returns unexpected results if a right side of the 
NOT IN clause consists of NULL value and some constants of
the same type, for example:

  SELECT * FROM t WHERE NOT t.id IN (NULL, 1, 2) 
  
may return 3, 4, 5 etc if a table contains these values.


The Item_func_in::val_int method has been modified:
unnecessary resets of an Item_func_case::has_null field 
value has been moved outside of an argument comparison
loop. (Also unnecessary re-initialization of the null_value
field has been moved).


mysql-test/r/func_in.result:
  Added test case for bug #37761.
mysql-test/t/func_in.test:
  Added test case for bug #37761.
sql/item_cmpfunc.cc:
  Bug #37761: IN handles NULL differently for table-subquery 
              and value-list
  
  The Item_func_in::val_int method has been modified:
  unnecessary resets of an Item_func_case::has_null field 
  value has been moved outside of an argument comparison
  loop. (Also unnecessary re-initialization of the null_value
  field has been moved).
2008-07-14 14:06:49 +05:00
..
2008-04-01 12:29:53 +02:00
2008-03-12 13:22:58 +03:00
2008-03-17 14:26:00 +03:00
2008-01-17 15:37:18 -08:00
2008-03-08 01:14:56 +04:00
2008-04-22 21:49:39 -07:00
2007-10-27 01:40:48 +05:00
2007-11-01 12:30:03 -07:00
2008-03-29 00:05:20 +03:00
2008-04-22 21:49:39 -07:00
2007-11-20 20:15:20 +04:00
2008-02-25 21:18:50 +01:00
2008-02-25 21:18:50 +01:00
2008-01-25 16:05:15 -08:00
2008-04-08 20:01:20 +04:00
2008-07-03 23:41:22 +04:00
2008-07-03 23:41:22 +04:00
2008-04-02 00:43:17 +02:00
2008-06-17 19:05:56 -06:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2007-10-27 01:40:48 +05:00
2008-03-26 20:27:23 +01:00
2008-03-25 17:48:05 -06:00
2008-07-03 23:41:22 +04:00
2008-05-21 17:34:14 +02:00
2008-07-07 11:43:56 +03:00
2008-07-07 11:43:56 +03:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-08 20:01:20 +04:00
2008-03-14 21:37:19 +01:00
2008-06-27 20:56:41 +05:00
2008-03-27 00:55:13 +04:00
2007-11-18 17:33:12 +04:00