mariadb/sql
Mattias Jonsson 3e1d88d188 Bug#30573: Ordered range scan over partitioned tables returns some rows twice
and
Bug#33555: Group By Query does not correctly aggregate partitions

Backport of bug-33257 which is the same bug.

read_range_*() calls was not passed to the partition handlers,
but was translated to index_read/next family calls.
Resulting in duplicates rows and wrong aggregations.

mysql-test/r/partition_range.result:
  Bug#30573: Ordered range scan over partitioned tables returns some rows twice
  
  Updated result file
mysql-test/t/partition_range.test:
  Bug#30573: Ordered range scan over partitioned tables returns some rows twice
  
  Re-enabled the test
sql/ha_partition.cc:
  Bug#30573: Ordered range scan over partitioned tables returns some rows twice
  
  backport of bug-33257, correct handling of read_range_* calls,
  without converting them to index_read/next calls
sql/ha_partition.h:
  Bug#30573: Ordered range scan over partitioned tables returns some rows twice
  
  backport of bug-33257, correct handling of read_range_* calls,
  without converting them to index_read/next calls
2008-09-18 22:49:34 +03:00
..
examples
share Manual merge 5.0->5.1 2008-08-06 16:20:41 +02:00
.cvsignore
add_errmsg
authors.h
client_settings.h
CMakeLists.txt
contributors.h
custom_conf.h
derror.cc
des_key_file.cc
discover.cc
event_data_objects.cc Bug#35577, manual merge mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-07-14 19:43:12 -06:00
event_data_objects.h
event_db_repository.cc Bug#35981: ALTER EVENT causes the server to change the PRESERVE option. 2008-09-11 09:51:02 +02:00
event_db_repository.h
event_parse_data.cc Bug#35981: ALTER EVENT causes the server to change the PRESERVE option. 2008-08-18 13:05:51 +02:00
event_parse_data.h Bug#35981: ALTER EVENT causes the server to change the PRESERVE option. 2008-08-18 13:05:51 +02:00
event_queue.cc
event_queue.h
event_scheduler.cc
event_scheduler.h
events.cc Merge fix for BUG#35478 into 5.1 2008-07-15 21:46:02 +04:00
events.h
field.cc Silence warning due to unused function. 2008-07-22 14:53:36 -03:00
field.h merge 5.0-bugteam -> 5.1-bugteam 2008-08-28 12:54:50 +03:00
field_conv.cc
filesort.cc Merge fix for BUG#35478 into 5.1 2008-07-15 21:46:02 +04:00
frm_crypt.cc
gen_lex_hash.cc
gstream.cc
gstream.h
ha_ndbcluster.cc
ha_ndbcluster.h
ha_ndbcluster_binlog.cc
ha_ndbcluster_binlog.h
ha_ndbcluster_cond.cc
ha_ndbcluster_cond.h
ha_ndbcluster_tables.h
ha_partition.cc Bug#30573: Ordered range scan over partitioned tables returns some rows twice 2008-09-18 22:49:34 +03:00
ha_partition.h Bug#30573: Ordered range scan over partitioned tables returns some rows twice 2008-09-18 22:49:34 +03:00
handler.cc Bug #38701: Crash in String::append when inserting duplicate empty strings an uft8 2008-09-05 18:21:59 +03:00
handler.h Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that 2008-08-11 20:02:03 +02:00
hash_filo.cc
hash_filo.h
hostname.cc
init.cc
item.cc Bug#36086: Auto merge. 2008-09-08 12:04:42 +02:00
item.h Merge from 5.0-bugteam. 2008-08-15 16:42:29 -04:00
item_buff.cc
item_cmpfunc.cc Merge 2008-09-09 20:52:38 +05:00
item_cmpfunc.h Merge 2008-09-05 13:36:02 +05:00
item_create.cc
item_create.h
item_func.cc Post-push fix for bug #26020: User-Defined Variables are not consistence with columns data types. 2008-09-18 17:24:09 +05:00
item_func.h Bug#26020: User-Defined Variables are not consistent with 2008-09-18 13:38:44 +05:00
item_geofunc.cc
item_geofunc.h
item_row.cc
item_row.h
item_strfunc.cc
item_strfunc.h
item_subselect.cc
item_subselect.h
item_sum.cc
item_sum.h
item_timefunc.cc
item_timefunc.h
item_xmlfunc.cc
item_xmlfunc.h
key.cc
lex.h
lex_symbol.h
lock.cc
log.cc Bug #32709: Assertion failed: trx_data->empty(), file log.cc 2008-09-03 22:04:07 +02:00
log.h Bug #32709: Assertion failed: trx_data->empty(), file log.cc 2008-09-03 22:04:07 +02:00
log_event.cc Bug#36099 replicate-do-db affects replaying RBR events with mysqlbinlog 2008-09-03 13:01:18 +03:00
log_event.h Merging 5.1 into 5.1-rpl-merge 2008-08-27 20:52:44 +02:00
log_event_old.cc
log_event_old.h
Makefile.am
message.mc
mf_iocache.cc
my_decimal.cc
my_decimal.h
my_lock.c
mysql_priv.h merging fix 2008-08-26 13:32:43 +05:00
mysql_priv.h.pp
mysqld.cc merging fix 2008-08-26 13:32:43 +05:00
mysqld_suffix.h
net_serv.cc
nt_servc.cc
nt_servc.h
opt_range.cc Merge BUG#36639 into 5.1 2008-08-25 21:18:22 +04:00
opt_range.h Merge BUG#36639 into 5.1 2008-08-25 21:18:22 +04:00
opt_sum.cc
parse_file.cc
parse_file.h
partition_element.h
partition_info.cc
partition_info.h
password.c
procedure.cc
procedure.h
protocol.cc Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that 2008-08-11 20:02:03 +02:00
protocol.h
records.cc Merge fix for BUG#35478 into 5.1 2008-07-15 21:46:02 +04:00
repl_failsafe.cc
repl_failsafe.h
rpl_constants.h
rpl_filter.cc
rpl_filter.h
rpl_injector.cc
rpl_injector.h
rpl_mi.cc
rpl_mi.h
rpl_record.cc
rpl_record.h
rpl_record_old.cc
rpl_record_old.h
rpl_reporting.cc
rpl_reporting.h
rpl_rli.cc
rpl_rli.h
rpl_tblmap.cc Bug#31455 mysqlbinlog don't print user readable info about RBR events 2008-08-20 19:06:31 +05:00
rpl_tblmap.h Bug#31455 mysqlbinlog don't print user readable info about RBR events 2008-08-20 19:06:31 +05:00
rpl_utility.cc
rpl_utility.h Bug#31455 mysqlbinlog don't print user readable info about RBR events 2008-08-20 19:06:31 +05:00
scheduler.cc
scheduler.h
set_var.cc Bug #39106: 2008-09-09 12:19:31 +02:00
set_var.h Bug #39106: 2008-09-09 12:19:31 +02:00
slave.cc
slave.h
sp.cc Bug#35577, manual merge mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-07-14 19:43:12 -06:00
sp.h
sp_cache.cc
sp_cache.h
sp_head.cc Manual merge of mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-08-11 16:44:13 -06:00
sp_head.h
sp_pcontext.cc
sp_pcontext.h
sp_rcontext.cc
sp_rcontext.h
spatial.cc
spatial.h
sql_acl.cc Bug#36086: SELECT * from views don't check column grants 2008-09-03 16:45:40 +02:00
sql_acl.h
sql_analyse.cc
sql_analyse.h
sql_array.h
sql_base.cc Bug#26020: User-Defined Variables are not consistent with 2008-09-18 13:38:44 +05:00
sql_binlog.cc BUG#38290 valgrind warnings in binlog_base64_flag 2008-08-14 10:42:10 +08:00
sql_bitmap.h
sql_builtin.cc.in
sql_cache.cc Bug#36086: SELECT * from views don't check column grants 2008-09-03 16:45:40 +02:00
sql_cache.h Reverting patch for bug30087 2008-07-17 11:31:22 +02:00
sql_class.cc Bug #32709: Assertion failed: trx_data->empty(), file log.cc 2008-09-03 22:04:07 +02:00
sql_class.h BUG#32709: Assertion failed: trx_data->empty(), file log.cc 2008-09-03 22:52:54 +02:00
sql_client.cc
sql_connect.cc
sql_crypt.cc
sql_crypt.h
sql_cursor.cc Manual merge of mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-08-11 16:44:13 -06:00
sql_cursor.h
sql_db.cc Bug #38773: DROP DATABASE cause switch to stmt-mode when there are temporary 2008-08-27 10:40:11 +02:00
sql_delete.cc Merge fix for BUG#35478 into 5.1 2008-07-15 21:46:02 +04:00
sql_derived.cc Bug#36086: SELECT * from views don't check column grants 2008-09-03 16:45:40 +02:00
sql_do.cc
sql_error.cc
sql_error.h
sql_handler.cc
sql_help.cc Merge fix for BUG#35478 into 5.1 2008-07-15 21:46:02 +04:00
sql_insert.cc merged 5.1.29-rc into 5.1-bugteam 2008-09-10 12:44:21 +03:00
sql_lex.cc Bug#26020: User-Defined Variables are not consistent with 2008-09-18 13:38:44 +05:00
sql_lex.h Bug#26020: User-Defined Variables are not consistent with 2008-09-18 13:38:44 +05:00
sql_list.cc
sql_list.h Manual merge of mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-08-11 16:44:13 -06:00
sql_load.cc
sql_locale.cc
sql_manager.cc
sql_map.cc
sql_map.h
sql_olap.cc
sql_parse.cc Merge 2008-09-10 12:44:38 +04:00
sql_partition.cc Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that 2008-08-11 20:02:03 +02:00
sql_partition.h
sql_plugin.cc Bug#35807 - INSTALL PLUGIN replicates row-based, but not stmt-based 2008-08-19 17:35:56 +02:00
sql_plugin.h
sql_prepare.cc Bug#35577, manual merge mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-07-14 19:43:12 -06:00
sql_profile.cc
sql_profile.h
sql_rename.cc
sql_repl.cc Additional fix for bug#31455 (rpl decoder) 2008-08-21 16:47:23 +05:00
sql_repl.h
sql_select.cc merge 5.0-bugteam -> 5.1-bugteam 2008-08-28 12:54:50 +03:00
sql_select.h
sql_servers.cc Merge fix for BUG#35478 into 5.1 2008-07-15 21:46:02 +04:00
sql_servers.h
sql_show.cc Cherry-pick some changes from innodb-5.1-ss2545 snapshot. Includes fixes for 2008-08-20 16:18:33 -06:00
sql_show.h
sql_sort.h
sql_state.c
sql_string.cc
sql_string.h Manual merge of mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-08-11 16:44:13 -06:00
sql_table.cc Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that 2008-08-11 20:02:03 +02:00
sql_tablespace.cc
sql_test.cc
sql_trigger.cc Bug#35577, manual merge mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-07-14 19:43:12 -06:00
sql_trigger.h
sql_udf.cc Bug#37428 Potential security issue with UDFs - linux shellcode execution. 2008-08-25 17:11:59 +05:00
sql_udf.h
sql_union.cc
sql_update.cc Cherry picking patch for BUG#37051 2008-08-26 18:01:49 +08:00
sql_view.cc Bug#35577, manual merge mysql-5.0-bugteam -> mysql-5.1-bugteam 2008-07-14 19:43:12 -06:00
sql_view.h
sql_yacc.yy Bug#26020: User-Defined Variables are not consistent with 2008-09-18 13:38:44 +05:00
strfunc.cc
structs.h
table.cc Bug#36086: SELECT * from views don't check column grants 2008-09-03 16:45:40 +02:00
table.h Bug#36086: SELECT * from views don't check column grants 2008-09-03 16:45:40 +02:00
thr_malloc.cc Bug#38296 (low memory crash with many conditions in a query) 2008-08-12 17:05:19 -06:00
time.cc
tzfile.h
tztime.cc
tztime.h
udf_example.c
udf_example.def
uniques.cc
unireg.cc
unireg.h Bug#37428 Potential security issue with UDFs - linux shellcode execution. 2008-08-25 17:11:59 +05:00