mariadb/sql
Michael Widenius c050b5fdf9 Fixed MDEV-5424: SELECT using ORDER BY DESC and LIMIT produces unexpected results (InnoDB/XtraDB)
This only happend when using an ORDER BY on a primary key part, where all other key parts where constant.
Remove of duplicated expressions in ORDER BY (as the old code did this in some strange cases)


mysql-test/r/group_by.result:
  Fixed results to take into account that duplicate order by parts are now deleted
mysql-test/r/group_by_innodb.result:
  Ensure extended keys are on
mysql-test/r/innodb_ext_key.result:
  More tests
mysql-test/r/order_by.result:
  More tests
mysql-test/t/group_by.test:
  Fixed results to take into account that duplicate order by parts are now deleted
mysql-test/t/group_by_innodb.test:
  Ensure extended keys are on
mysql-test/t/innodb_ext_key.test:
  More tests
mysql-test/t/order_by.test:
  More tests
sql/sql_select.cc:
  Fixed bug where we looked at extended key parts when we shouldn't
  Remove of duplicated expressions in ORDER BY
sql/table.cc:
  Indentation fixes
2014-01-02 15:51:02 +02:00
..
examples
share MDEV-5022 Strange message or wrong errno on mismatching versions of plugin and server 2013-11-11 09:31:09 +01:00
add_errmsg
authors.h
client_settings.h
CMakeLists.txt MDEV-5053 - fix cyclic dependency when building with Ninja CMake generator 2013-09-23 23:33:18 +02:00
contributors.h
create_options.cc
create_options.h
custom_conf.h
datadict.cc fix an old bug where dd_frm_type() could incorrectly determine the table type 2013-08-28 22:16:13 +02:00
datadict.h
db.opt
debug_sync.cc mysql-5.5.33 merge 2013-09-06 22:31:30 +02:00
debug_sync.h
derror.cc
derror.h
des_key_file.cc
des_key_file.h
discover.cc
discover.h
event_data_objects.cc MDEV-4824 userstats - wrong user statistics 2013-11-11 16:17:32 +01:00
event_data_objects.h
event_db_repository.cc
event_db_repository.h
event_parse_data.cc
event_parse_data.h
event_queue.cc
event_queue.h
event_scheduler.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
event_scheduler.h Bug#16865959 - PLEASE BACKPORT BUG 14749800. 2013-07-24 15:44:41 +05:30
events.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
events.h mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
field.cc Merge 5.3->5.5 2013-10-29 18:50:36 +02:00
field.h Merge from 5.3 2013-09-10 10:08:11 +04:00
field_conv.cc
filesort.cc mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
filesort.h
frm_crypt.cc
frm_crypt.h
gcalc_slicescan.cc
gcalc_slicescan.h
gcalc_tools.cc
gcalc_tools.h
gen_lex_hash.cc
gstream.cc
gstream.h
ha_ndbcluster.cc
ha_ndbcluster.h
ha_ndbcluster_binlog.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
ha_ndbcluster_binlog.h
ha_ndbcluster_cond.cc
ha_ndbcluster_cond.h
ha_ndbcluster_tables.h
ha_partition.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
ha_partition.h mysql-5.5.33 merge 2013-09-06 22:31:30 +02:00
handler.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
handler.h MDEV-5037: Server crash on a JOIN on a derived table with join_cache_level > 2 2013-09-20 14:47:38 +04:00
hash_filo.cc
hash_filo.h
hostname.cc mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
hostname.h
init.cc
init.h
innodb_priv.h mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
item.cc Merge 5.3->5.5 2013-11-21 13:09:08 +04:00
item.h 5.3 merge 2013-12-13 13:00:38 +01:00
item_buff.cc
item_cmpfunc.cc Merge 2013-11-22 18:38:13 -08:00
item_cmpfunc.h Merge 5.3->5.5 2013-11-21 21:40:43 -08:00
item_create.cc
item_create.h
item_func.cc Merge 5.3->5.5 2013-11-21 13:09:08 +04:00
item_func.h 5.3 merge 2013-12-13 13:00:38 +01:00
item_geofunc.cc merge 5.3 -> 5.5 2013-09-25 17:16:13 +03:00
item_geofunc.h merge 5.3 -> 5.5 2013-09-25 17:16:13 +03:00
item_row.cc merge 5.3 -> 5.5 2013-09-25 17:16:13 +03:00
item_row.h
item_strfunc.cc merge 5.3 -> 5.5 2013-09-25 17:16:13 +03:00
item_strfunc.h merge 5.3 -> 5.5 2013-09-25 17:16:13 +03:00
item_subselect.cc MDEV-5153: Server crashes in Item_ref::fix_fields on 2nd execution of PS with LEFT JOIN and MERGE view or SELECT SQ 2013-11-11 17:28:14 +02:00
item_subselect.h
item_sum.cc Merge 5.3->5.5 2013-11-21 13:09:08 +04:00
item_sum.h mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
item_timefunc.cc Merge 5.3->5.5 2013-12-02 15:50:35 +04:00
item_timefunc.h Merge 5.3->5.5 2013-11-21 13:09:08 +04:00
item_xmlfunc.cc merge 5.3 -> 5.5 2013-09-25 17:16:13 +03:00
item_xmlfunc.h merge 5.3 -> 5.5 2013-09-25 17:16:13 +03:00
key.cc
key.h
keycaches.cc
keycaches.h
lex.h
lex_symbol.h
lock.cc
lock.h
log.cc mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
log.h
log_event.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
log_event.h mysql-5.5.33 merge 2013-09-06 22:31:30 +02:00
log_event_old.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
log_event_old.h mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
log_slow.h
main.cc
mdl.cc
mdl.h
mem_root_array.h
message.h
message.mc
message.rc
mf_iocache.cc
MSG00001.bin
multi_range_read.cc MDEV-5037: Server crash on a JOIN on a derived table with join_cache_level > 2 2013-09-20 14:47:38 +04:00
multi_range_read.h MDEV-5037: Server crash on a JOIN on a derived table with join_cache_level > 2 2013-09-20 14:47:38 +04:00
my_decimal.cc
my_decimal.h mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
mysql_install_db.cc
mysql_upgrade_service.cc
mysqld.cc MDEV-5321 Calling mysql_library_end accesses freed memory; dumps memory to display. 2013-11-25 21:38:01 +04:00
mysqld.h mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
mysqld_suffix.h
net_serv.cc mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
nt_servc.cc
nt_servc.h
opt_index_cond_pushdown.cc
opt_range.cc MDEV-5069: Server crashes in SEL_ARG::increment_use_count with index_merge+index_merge_sort_union, FORCE INDEX 2013-11-19 13:47:35 +04:00
opt_range.h
opt_range_mrr.cc
opt_subselect.cc Merge 2013-11-21 11:21:53 +04:00
opt_subselect.h MDEV-5037: Server crash on a JOIN on a derived table with join_cache_level > 2 2013-09-20 14:47:38 +04:00
opt_sum.cc MDEV-5257: MIN/MAX Optimization (Select tables optimized away) does not work for DateTime 2013-11-12 17:37:32 +04:00
opt_table_elimination.cc Merge 5.3 -> 5.5 2013-12-02 15:17:21 +04:00
parse_file.cc
parse_file.h
partition_element.h
partition_info.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
partition_info.h
password.c
plistsort.c
procedure.cc
procedure.h
protocol.cc
protocol.h
records.cc tokudb patches for prepare range scan 2013-09-09 14:00:18 +02:00
records.h
repl_failsafe.cc
repl_failsafe.h
replication.h
rpl_constants.h
rpl_filter.cc mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
rpl_filter.h
rpl_handler.cc
rpl_handler.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 mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
rpl_rli.h
rpl_tblmap.cc
rpl_tblmap.h
rpl_utility.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
rpl_utility.h
scheduler.cc
scheduler.h
set_var.cc
set_var.h mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
sha2.cc
signal_handler.cc mysql-5.5.33 merge 2013-09-06 22:31:30 +02:00
slave.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
slave.h
sp.cc
sp.h
sp_cache.cc
sp_cache.h
sp_head.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sp_head.h
sp_pcontext.cc
sp_pcontext.h
sp_rcontext.cc
sp_rcontext.h
spatial.cc MDEV-4788 check mysql-5.5 changes in spatial.cc. 2013-10-10 14:20:35 +05:00
spatial.h Merge 5.3->5.5. 2013-08-18 19:58:51 -07:00
sql_acl.cc MDEV-4951 drop user leaves privileges 2013-08-28 07:49:53 +02:00
sql_acl.h
sql_admin.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sql_admin.h
sql_alter.cc
sql_alter.h
sql_analyse.cc mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
sql_analyse.h
sql_array.h
sql_audit.cc MDEV-4472 Audit-plugin. Server-related part of the task. 2013-09-09 16:56:35 +05:00
sql_audit.h MDEV-4472 Audit-plugin. Server-related part of the task. 2013-09-09 16:56:35 +05:00
sql_base.cc 5.3 merge 2013-12-13 13:00:38 +01:00
sql_base.h mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sql_binlog.cc
sql_binlog.h
sql_bitmap.h mysql-5.5.33 merge 2013-09-06 22:31:30 +02:00
sql_builtin.cc.in
sql_cache.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sql_cache.h
sql_callback.h
sql_class.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sql_class.h mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sql_client.cc
sql_connect.cc WL#7076: Backporting wl6715 to support both formats 2013-08-23 09:07:09 +05:30
sql_connect.h
sql_const.h
sql_crypt.cc
sql_crypt.h
sql_cursor.cc Fixed bug mdev-5028. 2013-10-02 17:59:56 -07:00
sql_cursor.h
sql_db.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sql_db.h
sql_delete.cc
sql_delete.h
sql_derived.cc Merge 5.3->5.5 2013-10-29 18:50:36 +02:00
sql_derived.h
sql_do.cc
sql_do.h
sql_error.cc mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
sql_error.h mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
sql_expression_cache.cc
sql_expression_cache.h
sql_handler.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sql_handler.h
sql_help.cc mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
sql_help.h
sql_hset.h
sql_insert.cc WL#7076: Backporting wl6715 to support both formats 2013-08-23 09:07:09 +05:30
sql_insert.h
sql_join_cache.cc
sql_join_cache.h
sql_lex.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sql_lex.h 5.3 merge 2013-12-13 13:00:38 +01:00
sql_lifo_buffer.h
sql_list.cc
sql_list.h
sql_load.cc mysql-5.5.33 merge 2013-09-06 22:31:30 +02:00
sql_load.h
sql_locale.cc
sql_locale.h
sql_manager.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sql_manager.h
sql_parse.cc MDEV-5396 Assertion `Handlerton: r==0 ' failed (errno=0) on EXPLAIN with TokuDB tables 2013-12-17 17:26:54 +01:00
sql_parse.h MDEV-4824 userstats - wrong user statistics 2013-11-11 16:17:32 +01:00
sql_partition.cc mysql-5.5.33 merge 2013-09-06 22:31:30 +02:00
sql_partition.h
sql_partition_admin.cc
sql_partition_admin.h
sql_plist.h MDEV-5205 - MariaDB does not start if more than 128 cpu's are available 2013-11-05 09:18:59 +04:00
sql_plugin.cc backport from 10.0: "bugfix: MYSQL_THDVAR_STR plugins with PLUGIN_VAR_MEMALLOC didn't work 2013-12-12 18:14:08 +01:00
sql_plugin.h
sql_plugin_compat.h
sql_plugin_services.h MDEV-4472 Audit-plugin. Server-related part of the task. 2013-09-09 16:56:35 +05:00
sql_prepare.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sql_prepare.h
sql_priv.h
sql_profile.cc
sql_profile.h
sql_reload.cc
sql_reload.h
sql_rename.cc mysql-5.5.33 merge 2013-09-06 22:31:30 +02:00
sql_rename.h
sql_repl.cc mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
sql_repl.h
sql_select.cc Fixed MDEV-5424: SELECT using ORDER BY DESC and LIMIT produces unexpected results (InnoDB/XtraDB) 2014-01-02 15:51:02 +02:00
sql_select.h Merge 5.3->5.5 2013-10-29 18:50:36 +02:00
sql_servers.cc
sql_servers.h
sql_show.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sql_show.h
sql_signal.cc
sql_signal.h
sql_sort.h
sql_state.c mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
sql_string.cc
sql_string.h mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
sql_table.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sql_table.h mysql-5.5.33 merge 2013-09-06 22:31:30 +02:00
sql_tablespace.cc
sql_tablespace.h
sql_test.cc
sql_test.h
sql_time.cc Merge 5.3->5.5 2013-12-02 15:50:35 +04:00
sql_time.h Merge 5.3->5.5 2013-12-02 15:50:35 +04:00
sql_trigger.cc mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
sql_trigger.h
sql_truncate.cc
sql_truncate.h
sql_udf.cc
sql_udf.h
sql_union.cc 5.3 merge 2013-12-13 13:00:38 +01:00
sql_union.h
sql_update.cc mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
sql_update.h
sql_view.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sql_view.h
sql_yacc.yy mysql-5.5.33 merge 2013-09-06 22:31:30 +02:00
strfunc.cc
strfunc.h
structs.h
sys_vars.cc mysql-5.5.34 merge 2013-11-19 13:16:25 +01:00
sys_vars.h mysql-5.5.33 merge 2013-09-06 22:31:30 +02:00
sys_vars_shared.h
table.cc Fixed MDEV-5424: SELECT using ORDER BY DESC and LIMIT produces unexpected results (InnoDB/XtraDB) 2014-01-02 15:51:02 +02:00
table.h merge 5.3 -> 5.5 2013-09-25 17:16:13 +03:00
thr_malloc.cc
thr_malloc.h
threadpool.h MDEV-5205 - MariaDB does not start if more than 128 cpu's are available 2013-11-05 09:18:59 +04:00
threadpool_common.cc MDEV-5205 - MariaDB does not start if more than 128 cpu's are available 2013-11-05 09:18:59 +04:00
threadpool_unix.cc MDEV-5205 - MariaDB does not start if more than 128 cpu's are available 2013-11-06 22:53:39 +04:00
threadpool_win.cc
transaction.cc Fix for bug #17356954 "CANNOT USE SAVEPOINTS AFTER ER_LOCK_DEADLOCK OR 2013-08-26 14:43:12 +04:00
transaction.h Fix for bug#14188793 - "DEADLOCK CAUSED BY ALTER TABLE DOEN'T CLEAR 2013-08-20 13:12:34 +04:00
tzfile.h
tztime.cc Merge 5.3 -> 5.5 2013-11-13 19:16:35 +04:00
tztime.h
udf_example.c
udf_example.def
uniques.cc
unireg.cc
unireg.h mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00
winservice.c
winservice.h