1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-27 01:57:48 +03:00
unknown e40e8052e8 BUG#17047: CHAR() and IN() can return NULL without signaling NULL result
The problem was that some functions (namely IN() starting with 4.1, and
CHAR() starting with 5.0) were returning NULL in certain conditions,
while they didn't set their maybe_null flag.  Because of that there could
be some problems with 'IS NULL' check, and statements that depend on the
function value domain, like CREATE TABLE t1 SELECT 1 IN (2, NULL);.

The fix is to set maybe_null correctly.


mysql-test/r/func_in.result:
  Add result for bug#17047: CHAR() and IN() can return NULL without
  signaling NULL result.
mysql-test/t/func_in.test:
  Add test case for bug#17047: CHAR() and IN() can return NULL without
  signaling NULL result.
sql/item_cmpfunc.cc:
  Remove assignment to maybe_null, as it was already set in fix_fields()
  based on all arguments, not only on the first.
2006-11-16 13:21:38 +03:00
..
2006-05-01 21:30:09 +03:00
2005-06-16 10:09:05 +02:00
2006-06-15 16:39:18 +04:00
2004-08-26 18:26:38 +03:00
2005-11-06 02:11:12 +03:00
2006-09-20 09:46:12 -07:00
2004-10-07 10:50:13 +03:00
2005-08-29 22:35:48 -05:00
2005-06-27 20:31:00 +03:00
2005-05-05 10:36:17 -07:00
2005-07-22 21:06:02 +05:00
2006-05-06 23:48:13 -07:00
2006-01-30 15:17:33 +03:00
2005-09-06 18:03:08 +04:00
2004-09-02 22:06:30 -07:00
2006-06-30 18:29:27 +03:00
2006-03-06 18:34:38 +01:00
2004-09-09 11:22:23 -05:00
2006-05-04 09:58:03 +05:00
2005-11-25 10:41:22 +01:00
2004-11-08 11:06:36 +01:00
2005-09-12 12:45:03 -07:00
2005-09-30 11:39:49 +02:00
2004-09-30 21:36:25 +00:00
2005-05-04 10:16:03 +02:00
2004-10-07 08:42:11 +00:00
2004-08-31 21:10:57 +03:00
2006-04-20 22:15:38 -07:00
2006-09-12 19:06:26 +04:00
2004-10-07 10:50:13 +03:00
2005-08-24 19:37:27 +03:00
2005-07-28 21:25:05 +03:00
2005-04-06 12:20:55 +02:00
2004-09-07 21:30:28 +02:00
2005-02-28 19:59:38 +04:00
2004-11-12 17:44:17 +02:00
2004-08-24 17:24:23 +02:00
2005-08-09 00:13:49 +03:00
2004-08-19 03:02:09 +02:00
2006-01-26 00:06:20 +03:00