mariadb/sql
kroki/tomash@moonlight.intranet b8d5451565 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.
2006-11-16 13:21:38 +03:00
..
examples BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-08-10 22:55:20 +08:00
share Addition to fix for bug#10974. Fixed spelling. 2006-10-06 10:54:47 +05:00
.cvsignore
add_errmsg
client_settings.h
custom_conf.h
derror.cc
des_key_file.cc Many files: 2005-09-30 14:03:55 +02:00
discover.cc
field.cc Merge trift2.:/M41/clone-4.1 2006-07-24 19:18:30 +02:00
field.h Fixed bug #20108. 2006-09-20 09:46:12 -07:00
field_conv.cc a fix (bug #7589: Decimal types are ignored when updating data from another column). 2005-09-21 14:32:19 +05:00
filesort.cc Review fixes since last pull 2005-09-12 18:48:17 +03:00
frm_crypt.cc
gen_lex_hash.cc
gstream.cc
gstream.h
ha_berkeley.cc BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-08-10 22:55:20 +08:00
ha_berkeley.h BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-08-10 22:55:20 +08:00
ha_blackhole.cc BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-09-28 23:41:37 +10:00
ha_blackhole.h BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-09-28 23:41:37 +10:00
ha_heap.cc BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-08-10 22:55:20 +08:00
ha_heap.h BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-08-10 22:55:20 +08:00
ha_innodb.cc BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-08-10 22:55:20 +08:00
ha_innodb.h BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-08-10 22:55:20 +08:00
ha_isam.cc BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-09-28 23:41:37 +10:00
ha_isam.h BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-09-28 23:41:37 +10:00
ha_isammrg.cc BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-09-28 23:41:37 +10:00
ha_isammrg.h BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-09-28 23:41:37 +10:00
ha_myisam.cc BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-08-10 22:55:20 +08:00
ha_myisam.h BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-08-10 22:55:20 +08:00
ha_myisammrg.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1-ndb 2006-10-25 17:24:20 +10:00
ha_myisammrg.h BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-08-10 22:55:20 +08:00
ha_ndbcluster.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1-ndb 2006-10-25 17:24:20 +10:00
ha_ndbcluster.h Bug #19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-10-23 23:46:35 +10:00
handler.cc Bug #21072 Duplicate key error in NDB references wrong key: Re-wrote string usage to avoid valgrind warnings 2006-10-25 11:44:40 +02:00
handler.h BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-08-10 22:55:20 +08:00
hash_filo.cc a compiler must see '#pragma implementation' *before* 2005-06-05 19:38:52 +02:00
hash_filo.h forgotten s/__GNUC__/USE_PRAGMA_INTERFACE/ causes compilation faliures 2005-05-27 14:15:08 +02:00
hostname.cc Fix for bug #15756: incorrect ip address matching in ACL due to use of latin1 collation. 2006-01-24 13:58:28 +04:00
init.cc
item.cc Fixed bug #21853: assert failure for a grouping query with 2006-09-25 05:24:07 -07:00
item.h Bug#21555: incorrect behavior with INSERT ... ON DUPL KEY UPDATE and VALUES 2006-09-08 10:24:14 +03:00
item_buff.cc group_by.result, group_by.test: 2005-06-21 04:24:21 -07:00
item_cmpfunc.cc BUG#17047: CHAR() and IN() can return NULL without signaling NULL result 2006-11-16 13:21:38 +03:00
item_cmpfunc.h Merge polly.local:/tmp/20924/bug20294/my41-bug20294 2006-09-13 16:01:46 +04:00
item_create.cc Merging fix for bug #9796 "Query Cache caches queries with CURRENT_USER() 2005-04-11 10:44:48 +04:00
item_create.h Making 4.1 tree compile with -ansi -pedantic 2004-12-16 16:16:28 +03:00
item_func.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2006-11-02 01:08:39 +03:00
item_func.h BUG#21726: Incorrect result with multiple invocations of LAST_INSERT_ID. 2006-10-06 13:34:07 +04:00
item_geofunc.cc Fix for bug #12839 (Endian support is absurd) 2005-09-21 14:35:01 +05:00
item_geofunc.h bug #10166 (Signed byte values cause data to be padded) 2006-06-22 22:11:27 +05:00
item_row.cc A fix and a test case for Bug#16248 "WHERE (col1,col2) IN ((?,?)) 2006-04-07 22:26:25 +04:00
item_row.h A fix and a test case for Bug#16248 "WHERE (col1,col2) IN ((?,?)) 2006-04-07 22:26:25 +04:00
item_strfunc.cc Fix for bug #20204: "order by" changes the results returned 2006-09-21 16:05:01 +05:00
item_strfunc.h Merge siva.hindu.god:/usr/home/tim/m/bk/b20536-41 2006-08-23 16:30:05 -06:00
item_subselect.cc Merge bk-internal:/home/bk/mysql-4.1-maint 2006-09-28 18:11:29 -07:00
item_subselect.h BUG#20975: Incorrect query result for NOT (subquery): 2006-07-21 03:04:04 +04:00
item_sum.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2006-11-02 01:08:39 +03:00
item_sum.h BUG#21354: (COUNT(*) = 1) not working in SELECT inside prepared 2006-10-10 17:08:47 +04:00
item_timefunc.cc Merge bk-internal:/home/bk/mysql-4.1-maint 2006-09-28 18:11:29 -07:00
item_timefunc.h Manually merged 2006-06-17 02:11:12 +04:00
item_uniq.cc a compiler must see '#pragma implementation' *before* 2005-06-05 19:38:52 +02:00
item_uniq.h Add ifdefs to control when "#pragma implementation" should be used 2005-05-26 12:09:14 +02:00
key.cc Merge 2005-03-17 10:59:25 +04:00
lex.h WL#1596 "make mysqldump --master-data --single-transaction able to do online dump of InnoDB AND report reliable 2004-11-10 17:56:45 +01:00
lex_symbol.h
lock.cc Bug#18544 - LOCK TABLES timeout causes MyISAM table corruption 2006-04-19 22:54:25 +05:00
log.cc Merge perch.ndb.mysql.com:/home/jonas/src/41-work 2006-09-04 14:45:13 +02:00
log_event.cc BUG#21726: Incorrect result with multiple invocations of LAST_INSERT_ID. 2006-10-06 13:34:07 +04:00
log_event.h Fix for BUG#13023: "SQL Thread is up but doesn't move forward". Details in slave.cc; 2005-10-12 13:29:55 +02:00
Makefile.am Bug#18888 Trying to overwrite sql/lex_hash.h during build 2006-09-25 20:01:39 +02:00
matherr.c
mf_iocache.cc
my_lock.c
mysql_priv.h Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2006-11-02 01:08:39 +03:00
mysqld.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2006-11-02 01:08:39 +03:00
mysqld_suffix.h
net_serv.cc BUG#9678: Client library hangs after network communication failure 2006-08-14 20:01:19 +04:00
nt_servc.cc
nt_servc.h
opt_range.cc Merge bk-internal:/home/bk/mysql-4.1-maint 2006-09-28 18:11:29 -07:00
opt_range.h BUG#21077: Possible crash caused by invalid sequence of handler::* calls: 2006-08-15 20:33:14 +04:00
opt_sum.cc Merge willster.(none):/home/stewart/Documents/MySQL/4.1/main 2006-09-25 14:48:39 +10:00
password.c A fix for Bug#13944 "libmysqlclient exporting sha1_result function": 2006-01-11 17:31:52 +03:00
procedure.cc a compiler must see '#pragma implementation' *before* 2005-06-05 19:38:52 +02:00
procedure.h BUG#10241 cygwin port: invalid pragma interface directives 2005-05-04 15:05:56 +02:00
protocol.cc A fix and a test case for Bug#15613 "libmysqlclient API function 2006-01-18 22:50:31 +03:00
protocol.h BUG#10241 cygwin port: invalid pragma interface directives 2005-05-04 15:05:56 +02:00
protocol_cursor.cc a compiler must see '#pragma implementation' *before* 2005-06-05 19:38:52 +02:00
records.cc Added more tests for new UPDATE ... ORDER BY ... LIMIT optimization 2005-10-25 02:27:40 +03:00
repl_failsafe.cc fix for Valgrind errors: query_id needs to be inited early (already fixed in 5.0 by Konstantin) and so does client_capabilities (not fixed in 5.0); 2005-10-14 15:34:52 +02:00
repl_failsafe.h
set_var.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2006-11-02 01:08:39 +03:00
set_var.h WL#2928 Date Translation NRE 2006-07-04 17:40:40 +05:00
slave.cc Merge bk-internal:/home/bk/mysql-4.1-maint 2006-09-28 18:11:29 -07:00
slave.h Bug #2717: include/my_global.h mis-defines __attribute__ 2006-08-17 12:25:40 -07:00
spatial.cc Review of new pushed code 2005-11-01 13:00:02 +02:00
spatial.h gcc 4.1 linux warning fixes backported from 5.0. 2006-06-28 16:28:29 +03:00
sql_acl.cc Merge bk-internal:/home/bk/mysql-4.1-maint 2006-09-28 18:11:29 -07:00
sql_acl.h Fix for bug #12423 "Deadlock when doing FLUSH PRIVILEGES and GRANT in 2005-09-01 16:52:59 +04:00
sql_analyse.cc Bug#20305: PROCEDURE ANALYSE() returns wrong M for FLOAT(M, D) and DOUBLE(M, D) 2006-09-28 14:30:20 -04:00
sql_analyse.h Add ifdefs to control when "#pragma implementation" should be used 2005-05-26 12:09:14 +02:00
sql_base.cc Merge bk-internal:/home/bk/mysql-4.1 2006-10-20 10:57:38 +02:00
sql_bitmap.h terminal.c, sql_bitmap.h, my_sys.h, configure.in, config.h: 2005-05-05 09:15:14 +02:00
sql_cache.cc WL#2928 Date Translation NRE 2006-07-04 17:40:40 +05:00
sql_cache.h Merge sanja.is.com.ua:/home/bell/mysql/bk/work-4.0 2005-09-06 12:18:23 +03:00
sql_class.cc Merge moonbone.local:/home/evgen/bk-trees/mysql-4.1 2006-07-18 23:30:09 +04:00
sql_class.h Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2006-11-02 01:08:39 +03:00
sql_client.cc
sql_crypt.cc a compiler must see '#pragma implementation' *before* 2005-06-05 19:38:52 +02:00
sql_crypt.h Add ifdefs to control when "#pragma implementation" should be used 2005-05-26 12:09:14 +02:00
sql_db.cc Bug #15302 LOAD DATA FROM MASTER -> Packets out of order (Found: 2, expected 1) 2006-01-31 12:47:22 +01:00
sql_delete.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2006-11-02 01:08:39 +03:00
sql_derived.cc fixed union types merging and table related metadata (BUG#8824) 2005-03-23 08:36:48 +02:00
sql_do.cc Fix for bug #6765 "Implicit access to time zone description 2004-12-09 13:31:46 +03:00
sql_error.cc abort storing query to query cache if warnings appeared (BUG#9414) 2005-06-28 00:52:21 +03:00
sql_handler.cc Re-run fix-fields on condition if table was reopened in HANDLERREAD 2006-01-10 19:13:12 +02:00
sql_help.cc * Added comments and one assert 2004-12-14 03:36:19 +03:00
sql_insert.cc BUG#21726: Incorrect result with multiple invocations of LAST_INSERT_ID. 2006-10-06 13:34:07 +04:00
sql_lex.cc Fix for bug #20695: Charset introducer overrides charset definition for column. 2006-08-15 15:24:07 +05:00
sql_lex.h Fix for bug #20695: Charset introducer overrides charset definition for column. 2006-08-15 15:24:07 +05:00
sql_list.cc a compiler must see '#pragma implementation' *before* 2005-06-05 19:38:52 +02:00
sql_list.h merged 2005-05-18 22:14:08 +02:00
sql_load.cc BUG#21726: Incorrect result with multiple invocations of LAST_INSERT_ID. 2006-10-06 13:34:07 +04:00
sql_locale.cc Backporting Kostja's changes made for 5.0 into 4.1. 2006-07-18 15:53:12 +05:00
sql_manager.cc
sql_manager.h
sql_map.cc a compiler must see '#pragma implementation' *before* 2005-06-05 19:38:52 +02:00
sql_map.h Add ifdefs to control when "#pragma implementation" should be used 2005-05-26 12:09:14 +02:00
sql_olap.cc a compiler must see '#pragma implementation' *before* 2005-06-05 19:38:52 +02:00
sql_parse.cc BUG#21726: Incorrect result with multiple invocations of LAST_INSERT_ID. 2006-10-06 13:34:07 +04:00
sql_prepare.cc A fix and a test case for Bug#19399 "res 'Lost Connection' when 2006-07-06 23:59:04 +04:00
sql_rename.cc Bug#6391 (binlog-do-db rules ignored) 2004-12-03 12:13:51 +01:00
sql_repl.cc bug#21965 - replication 2006-09-04 13:43:34 +02:00
sql_repl.h Remove DUP_IGNORE from enum_duplicates and instead use a separate ignore flag 2004-12-31 12:04:35 +02:00
sql_select.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2006-11-02 01:08:39 +03:00
sql_select.h gcc 4.1 linux warning fixes backported from 5.0. 2006-06-28 16:28:29 +03:00
sql_show.cc Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-4.1 2006-05-04 13:17:16 +03:00
sql_sort.h
sql_state.c
sql_string.cc Bug#21913: DATE_FORMAT() Crashes mysql server if I use it through mysql-connector-j driver. 2006-09-04 09:13:40 +02:00
sql_string.h Bug#19006: 4.0 valgrind problems (in test func_str) 2006-07-01 14:31:52 -04:00
sql_table.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1-runtime 2006-08-29 17:00:46 +04:00
sql_test.cc Bug#12920 - key_read_requests counter appears to re-set 2005-09-14 13:18:16 +02:00
sql_udf.cc - backport of a compile fix from 4.1 (ChangeSet@1.2260.23.2 2005/05/19 from reggie) 2005-06-30 17:33:23 +02:00
sql_udf.h Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2005-05-09 12:16:59 +02:00
sql_union.cc BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables 2006-09-28 23:41:37 +10:00
sql_update.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2006-11-02 01:08:39 +03:00
sql_yacc.yy Merge mysql.com:/users/lthalmann/bkroot/mysql-4.1-rpl 2006-09-20 16:17:30 +02:00
stacktrace.c Bug #21250: esolve stack traces on AMD64 (backport to mysql-4.1) 2006-09-07 00:01:00 +02:00
stacktrace.h Bug #21250: esolve stack traces on AMD64 (backport to mysql-4.1) 2006-09-07 00:01:00 +02:00
strfunc.cc - Housekeeping: removed a few unreferenced variables, noticed while doing 2005-01-11 15:38:03 +01:00
structs.h Better comments in KEY_PART_INFO struct 2006-06-14 21:06:02 +04:00
table.cc Merge mysql.com:/home/gluh/MySQL/Merge/4.1 2006-10-05 16:38:21 +05:00
table.h A fix and a test case for Bug#19399 "res 'Lost Connection' when 2006-07-06 23:59:04 +04:00
thr_malloc.cc
time.cc Bug#20729: Bad date_format() call makes mysql server crash 2006-07-11 13:06:29 -04:00
tzfile.h
tztime.cc Minor Netware specific changes. 2005-12-13 18:30:10 +02:00
tztime.h BUG#10241 cygwin port: invalid pragma interface directives 2005-05-04 15:05:56 +02:00
udf_example.cc Ensure that we free memory used with --order-by-primary (in mysqldump) 2004-12-09 12:47:20 +02:00
uniques.cc
unireg.cc Merge mysql.com:/home/gluh/MySQL/Merge/4.1 2006-10-05 16:38:21 +05:00
unireg.h Fixed bug#14169: type of group_concat() result changed to blob if tmp_table was 2006-04-12 23:05:38 +04:00
watchdog_mysqld