mariadb/sql
unknown 63982db93c Better bugfix for "HAVING when refering to RAND()" (Bug #8216)
Ensure that references in HAVING, ORDER BY or GROUP BY are calculated after fields in SELECT.
This will ensure that any reference to these has a valid value.
Generalized the code for split_sum_func()


BitKeeper/etc/ignore:
  added support-files/ndb-config-2-node.ini
mysql-test/r/group_by.result:
  More complicated test to assure that rand() is only calulated once
mysql-test/r/user_var.result:
  Back to old results :(  (ok but not perfect)
mysql-test/t/group_by.test:
  More complicated test to assure that rand() is only calulated once
sql/item.cc:
  Better bugfix for "HAVING when refering to RAND()"
  This will ensure that when refering to things like RAND() in HAVING through an alias we will not recalculate that rand() value in the HAVING part but use the value in the row
  Generalize split_sum_func()
sql/item.h:
  Better bugfix for "HAVING when refering to RAND()"
  T
sql/item_cmpfunc.cc:
  Better bugfix for "HAVING when refering to RAND()"
  Use generalized split_sum_func2() function
sql/item_func.cc:
  Better bugfix for "HAVING when refering to RAND()"
  Use generalized split_sum_func2() function
sql/item_row.cc:
  Better bugfix for "HAVING when refering to RAND()"
  Use generalized split_sum_func2() function
sql/item_strfunc.cc:
  Better bugfix for "HAVING when refering to RAND()"
  Use generalized split_sum_func2() function
sql/sql_list.h:
  Add functions to concatenate lists
sql/sql_select.cc:
  Better bugfix for "HAVING when refering to RAND()"
  Ensure that references in HAVING, ORDER BY or GROUP BY are calculated after fields in SELECT.
  This will ensure that any reference to these has a valid value.
2005-02-08 14:41:09 +02:00
..
examples Removed duplicate close call and added archive to the debug build and test. 2005-01-31 12:17:34 -08:00
share errmsg.txt: 2005-01-20 13:08:16 +04:00
.cvsignore
add_errmsg
client_settings.h
custom_conf.h
derror.cc Fixed many compiler warnings 2004-04-05 13:56:05 +03:00
des_key_file.cc
discover.cc WL1424 Multiple MySQL Servers: SHOW TABLES etc. should detect new and delete old tables. 2004-09-13 14:46:38 +02:00
field.cc Merge mysql.com:/home/jimw/my/mysql-4.1-6067 2005-02-04 10:39:13 -08:00
field.h A fix: bug#6931: Date Type column problem when using UNION-Table 2005-02-04 15:31:36 +03:00
field_conv.cc Merge changed tests 2005-01-18 12:25:56 -08:00
filesort.cc Merge mysql.com:/home/my/mysql-4.0 into mysql.com:/home/my/mysql-4.1 2005-01-18 03:52:15 +02:00
frm_crypt.cc
gen_lex_hash.cc Merge with 4.0 2004-09-01 04:12:09 +03:00
gstream.cc
gstream.h
ha_berkeley.cc Fix small memory leak that occured when BerkeleyDB failed to initialize. 2005-01-12 17:20:43 -08:00
ha_berkeley.h Fix for BUG#5117: 2004-09-13 06:14:25 +04:00
ha_heap.cc limit HEAP table size with max_heap_table_size, better estimation for mem_per_row 2005-01-14 19:49:45 +01:00
ha_heap.h Fix for bug#5138: hash indexes on heap tables support statistics. 2004-09-08 02:07:53 +04:00
ha_innodb.cc After merge fixes 2005-02-01 10:24:09 +02:00
ha_innodb.h InnoDB: Backport innodb_autoextend_increment from 4.1 2005-01-25 16:27:13 +02:00
ha_isam.cc Support for TIMESTAMP columns holding NULL values. Unlike all other 2004-10-01 18:54:06 +04:00
ha_isam.h New handler::index_flags() definition to make it easy to check the full used key and a specific key part. 2004-07-08 15:45:25 +03:00
ha_isammrg.cc Support for TIMESTAMP columns holding NULL values. Unlike all other 2004-10-01 18:54:06 +04:00
ha_isammrg.h New handler::index_flags() definition to make it easy to check the full used key and a specific key part. 2004-07-08 15:45:25 +03:00
ha_myisam.cc Bug#6202: ENUMs are not case sensitive even if declared BINARY 2004-10-25 17:51:26 +05:00
ha_myisam.h indexless boolean fulltext search was depending on default_charset_info - Bug#8159 2005-02-04 15:24:06 +01:00
ha_myisammrg.cc Fix for BUG#7377. This fix adds the same implementation for ha_myisammgr::index_type as in version 5.0. 2004-12-27 14:05:35 +02:00
ha_myisammrg.h Fix for BUG#7377. This fix adds the same implementation for ha_myisammgr::index_type as in version 5.0. 2004-12-27 14:05:35 +02:00
ha_ndbcluster.cc ha_ndbcluster.cc: 2005-02-07 09:58:37 +01:00
ha_ndbcluster.h Bug#8101 unique indexes which attribute are _not_ specified in the order of the table does not work 2005-01-26 11:31:46 +01:00
handler.cc Test Bug: Memory leaks in the archive handler. 2005-01-26 15:27:31 +01:00
handler.h indexless boolean fulltext search was depending on default_charset_info - Bug#8159 2005-02-04 15:24:06 +01:00
hash_filo.cc
hash_filo.h
hostname.cc
init.cc Portability fixes 2004-04-07 04:33:58 +03:00
item.cc Better bugfix for "HAVING when refering to RAND()" (Bug #8216) 2005-02-08 14:41:09 +02:00
item.h Better bugfix for "HAVING when refering to RAND()" (Bug #8216) 2005-02-08 14:41:09 +02:00
item_buff.cc
item_cmpfunc.cc Better bugfix for "HAVING when refering to RAND()" (Bug #8216) 2005-02-08 14:41:09 +02:00
item_cmpfunc.h fixed column number fetchinmg for subqueries. (BUG#8020) 2005-01-24 14:25:44 +02:00
item_create.cc innobase/include/univ.i 2005-01-26 08:57:43 +01:00
item_create.h Making 4.1 tree compile with -ansi -pedantic 2004-12-16 16:16:28 +03:00
item_func.cc Better bugfix for "HAVING when refering to RAND()" (Bug #8216) 2005-02-08 14:41:09 +02:00
item_func.h fixed column number fetchinmg for subqueries. (BUG#8020) 2005-01-24 14:25:44 +02:00
item_geofunc.cc Fix for bug #6765 "Implicit access to time zone description 2004-12-09 13:31:46 +03:00
item_geofunc.h Additional fix for bug #5136 (Geometry object is corrupted when queried) 2004-09-22 22:36:53 +05:00
item_row.cc Better bugfix for "HAVING when refering to RAND()" (Bug #8216) 2005-02-08 14:41:09 +02:00
item_row.h Deployment of centralized Item change registry, step 2: Item_ref 2004-10-08 19:13:09 +04:00
item_strfunc.cc Better bugfix for "HAVING when refering to RAND()" (Bug #8216) 2005-02-08 14:41:09 +02:00
item_strfunc.h Merge fixes for #8248, #5569. 2005-02-02 08:21:11 -08:00
item_subselect.cc fixed cleanup of result object of subqueries. (BUG#8125) 2005-01-26 15:27:45 +02:00
item_subselect.h postreview fix 2004-12-07 21:18:15 +02:00
item_sum.cc * Added comments and one assert 2004-12-14 03:36:19 +03:00
item_sum.h func_gconcat.result, func_gconcat.test: 2005-01-15 01:05:00 -08:00
item_timefunc.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2005-01-28 09:32:43 +03:00
item_timefunc.h Fix for bug #7899 "CREATE TABLE .. SELECT .. and CONVERT_TZ() function 2005-01-26 22:25:02 +03:00
item_uniq.cc
item_uniq.h
key.cc Bug#4594: column index make = failed for gbk, but like works 2004-08-23 20:12:39 +05: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 Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0 2004-11-30 22:22:12 +01:00
log.cc make the code to look safe, not only be safe 2005-01-17 22:35:53 +01:00
log_event.cc Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.1 2005-01-14 10:59:37 +01:00
log_event.h Remove DUP_IGNORE from enum_duplicates and instead use a separate ignore flag 2004-12-31 12:04:35 +02:00
Makefile.am logging_ok: 2004-09-15 20:41:49 +02:00
matherr.c
mf_iocache.cc
my_lock.c
mysql_priv.h Merge mysql.com:/home/jimw/my/mysql-4.1-6511 2005-01-31 15:30:34 -08:00
mysqld.cc configure.in 2005-02-02 12:08:20 +01:00
mysqld_suffix.h New MYSQL_SERVER_SUFFIX usage (for easier compilation) 2004-05-25 02:28:44 +03:00
net_serv.cc make it compile with -ansi -pedantic 2005-01-11 13:12:52 +03:00
nt_servc.cc
nt_servc.h
opt_range.cc Simpler arena swapping code 2004-11-08 01:13:54 +02:00
opt_range.h backport Serg's fix of FT interface (BUG#6523) 2004-11-16 22:58:02 +02:00
opt_sum.cc opt_sum.cc: 2004-09-15 23:52:46 -07:00
password.c sql/password.c: check for buffer overflow in check_scramble_323 (BUG#7187) 2004-12-11 10:17:25 +01:00
procedure.cc
procedure.h
protocol.cc bug#6275 "client_test" fail in 4.1.7 make test 2004-12-14 15:58:30 +04:00
protocol.h Remove usage of !$ from mysql-tests 2004-11-02 20:13:27 +02:00
protocol_cursor.cc
records.cc Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
repl_failsafe.cc Fix for bug #6765 "Implicit access to time zone description 2004-12-09 13:31:46 +03:00
repl_failsafe.h Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
set_var.cc Merge heikki@bk-internal.mysql.com:/home/bk/mysql-4.1 2005-01-31 22:30:40 +02:00
set_var.h Fix for bug #7899 "CREATE TABLE .. SELECT .. and CONVERT_TZ() function 2005-01-26 22:25:02 +03:00
slave.cc Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/ 2005-01-24 15:50:13 +01:00
slave.h A change of behaviour of Seconds_Behind_Master from SHOW SLAVE STATUS. It's going into 4.1 2004-12-16 18:12:22 +01:00
spatial.cc Fix for bug #6117 (Centroid() crashes server) 2004-10-22 20:32:02 +05:00
spatial.h Fix compiler warnings (detected by Intel's C++ compiler) 2004-10-22 18:44:51 +03:00
sql_acl.cc fixes/cleanups according to Coverity report 2005-01-24 15:48:25 +01:00
sql_acl.h fixes/cleanups according to Coverity report 2005-01-24 15:48:25 +01:00
sql_analyse.cc fixes/cleanups according to Coverity report 2005-01-24 15:48:25 +01:00
sql_analyse.h
sql_base.cc Fix for BUG#8055 "Trouble with replication from temporary tables and ignores": 2005-02-04 22:43:54 +01:00
sql_bitmap.h Made my_snprintf() behavior snprintf() compatible when printing %x arguments (it should 2004-05-27 17:54:40 +04:00
sql_cache.cc Merge mysql.com:/home/jimw/my/mysql-4.1-6511 2005-01-31 15:30:34 -08:00
sql_cache.h Merge with 4.0 2004-10-27 19:52:41 +03:00
sql_class.cc fixed cleanup of result object of subqueries. (BUG#8125) 2005-01-26 15:27:45 +02:00
sql_class.h Merge heikki@bk-internal.mysql.com:/home/bk/mysql-4.1 2005-02-02 00:22:19 +02:00
sql_client.cc
sql_crypt.cc
sql_crypt.h
sql_db.cc fixes/cleanups according to Coverity report 2005-01-24 15:48:25 +01:00
sql_delete.cc Remove DUP_IGNORE from enum_duplicates and instead use a separate ignore flag 2004-12-31 12:04:35 +02:00
sql_derived.cc Fix for bug #6765 "Implicit access to time zone description 2004-12-09 13:31:46 +03: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 Simpler arena swapping code 2004-11-08 01:13:54 +02:00
sql_handler.cc * Added comments and one assert 2004-12-14 03:36:19 +03:00
sql_help.cc * Added comments and one assert 2004-12-14 03:36:19 +03:00
sql_insert.cc Fix for failing INSERT IGNORE in test ndb_insert 2005-01-25 15:08:51 +01:00
sql_lex.cc Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 2005-02-01 11:05:29 +02:00
sql_lex.h fixed column number fetchinmg for subqueries. (BUG#8020) 2005-01-24 14:25:44 +02:00
sql_list.cc
sql_list.h Better bugfix for "HAVING when refering to RAND()" (Bug #8216) 2005-02-08 14:41:09 +02:00
sql_load.cc Remove DUP_IGNORE from enum_duplicates and instead use a separate ignore flag 2004-12-31 12:04:35 +02:00
sql_manager.cc
sql_manager.h
sql_map.cc
sql_map.h
sql_olap.cc false/true -> FALSE/TRUE 2004-03-30 02:32:41 +03:00
sql_parse.cc Merge fixes for #8248, #5569. 2005-02-02 08:21:11 -08:00
sql_prepare.cc Fix bug in INSERT DELAYED with prepared statements 2005-01-14 00:09:15 +02:00
sql_rename.cc Bug#6391 (binlog-do-db rules ignored) 2004-12-03 12:13:51 +01:00
sql_repl.cc Remove DUP_IGNORE from enum_duplicates and instead use a separate ignore flag 2004-12-31 12:04:35 +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 Better bugfix for "HAVING when refering to RAND()" (Bug #8216) 2005-02-08 14:41:09 +02:00
sql_select.h Simpler arena swapping code 2004-11-08 01:13:54 +02:00
sql_show.cc Merge mysql.com:/home/timka/mysql/src/4.1-bug-4285 2005-01-21 16:47:51 +02:00
sql_sort.h
sql_state.c
sql_string.cc fix call of string::copy() if HAVE_FCONVERT is set 2004-11-01 14:43:53 +00:00
sql_string.h Fix for BUG#7716: in in_string::set() take into account that the value returned 2005-02-04 09:14:22 +03:00
sql_table.cc Fixed during review of new pulled code 2005-02-02 20:28:01 +02:00
sql_test.cc WL#1700 - Properly count key_blocks_used and key_blocks_current. 2004-05-03 15:55:21 +02:00
sql_udf.cc sql_print_error cleanup 2004-09-04 20:17:09 +02:00
sql_udf.h A fix (bug #6441: Aggregate UDF in multi-table query crashes MySQL when returning multiple rows). 2004-11-06 09:37:30 +04:00
sql_union.cc A fix: bug#6931: Date Type column problem when using UNION-Table 2005-02-04 15:31:36 +03:00
sql_update.cc Fixed during review of new pulled code 2005-02-02 20:28:01 +02:00
sql_yacc.yy Fix for BUG#8023. 2005-02-02 08:38:24 +02:00
stacktrace.c Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
stacktrace.h
strfunc.cc - Housekeeping: removed a few unreferenced variables, noticed while doing 2005-01-11 15:38:03 +01:00
structs.h Fix for bug#5138: hash indexes on heap tables support statistics. 2004-09-08 02:07:53 +04:00
table.cc Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/ 2005-01-24 15:50:13 +01:00
table.h Fix for BUG#5837 merged from 4.0 2004-12-11 15:55:50 +03:00
thr_malloc.cc Simpler arena swapping code 2004-11-08 01:13:54 +02:00
time.cc Fix for bug #7297 "Two digit year should be interpreted correctly 2004-12-16 16:31:50 +03:00
tzfile.h WL#1264 "Per-thread time zone support infrastructure". 2004-06-18 10:11:31 +04:00
tztime.cc Merge bk-internal.mysql.com:/home/bk/mysql-4.1 2005-01-28 09:32:43 +03:00
tztime.h Fix for bug #6765 "Implicit access to time zone description 2004-12-09 13:31:46 +03: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 Bug#7302: UCS2 data in ENUM field get truncated when new column is added 2004-12-21 17:12:27 +04:00
unireg.h Fixed bug in HAVING when refering to RAND() through alias 2005-02-07 18:13:57 +02:00
watchdog_mysqld