summaryrefslogtreecommitdiff
path: root/sql/opt_table_elimination.cc
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2009-09-16 23:05:03 +0400
committerSergey Petrunya <psergey@askmonty.org>2009-09-16 23:05:03 +0400
commit2f93e7cd3f67684f0466d5cb5ec27dcea0851091 (patch)
tree6a2e5a0b9e4b773ca14168adb6b48cf4bc9aa426 /sql/opt_table_elimination.cc
parent370aa40f2c5df1d164bf59d0dce6ff5c2ba00ca0 (diff)
downloadmariadb-git-2f93e7cd3f67684f0466d5cb5ec27dcea0851091.tar.gz
MWL#17: Table elimination: fixes for windows
include/my_global.h: MWL#17: Table elimination: fixes for windows - Add ALIGN_MAX_UNIT (assume malloc returns data aligned to this much) mysql-test/r/table_elim.result: MWL#17: Table elimination: fixes for windows - Use only lower-case as EXPLAIN [EXTENDED] changes case of table names on windows mysql-test/t/table_elim.test: MWL#17: Table elimination: fixes for windows - Use only lower-case as EXPLAIN [EXTENDED] changes case of table names on windows sql/opt_table_elimination.cc: MWL#17: Table elimination: fixes for windows - Add extra alignment-padding-space for stack-allocated buffers.
Diffstat (limited to 'sql/opt_table_elimination.cc')
-rw-r--r--sql/opt_table_elimination.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/opt_table_elimination.cc b/sql/opt_table_elimination.cc
index 712572b07b5..ef2a92f1797 100644
--- a/sql/opt_table_elimination.cc
+++ b/sql/opt_table_elimination.cc
@@ -868,7 +868,7 @@ bool Dep_analysis_context::run_wave(List<Dep_module> *new_bound_modules)
List_iterator<Dep_module> modules_it(*new_bound_modules);
while ((module= modules_it++))
{
- char iter_buf[Dep_module::iterator_size];
+ char iter_buf[Dep_module::iterator_size + ALIGN_MAX_UNIT];
Dep_module::Iterator iter;
iter= module->init_unbound_values_iter(iter_buf);
while ((value= module->get_next_unbound_value(this, iter)))
@@ -887,7 +887,7 @@ bool Dep_analysis_context::run_wave(List<Dep_module> *new_bound_modules)
List_iterator<Dep_value> value_it(new_bound_values);
while ((value= value_it++))
{
- char iter_buf[Dep_value::iterator_size];
+ char iter_buf[Dep_value::iterator_size + ALIGN_MAX_UNIT];
Dep_value::Iterator iter;
iter= value->init_unbound_modules_iter(iter_buf);
while ((module= value->get_next_unbound_module(this, iter)))