Commit 8b779456 authored by unknown's avatar unknown

Post-merge fix for Bug 33851. The initialization order of members

must match the order which they were declared in the class definition. 


sql/item.cc:
  Fix initialization order, parameter was the last one declared.
parent 1164e2bc
...@@ -2385,14 +2385,14 @@ default_set_param_func(Item_param *param, ...@@ -2385,14 +2385,14 @@ default_set_param_func(Item_param *param,
Item_param::Item_param(unsigned pos_in_query_arg) : Item_param::Item_param(unsigned pos_in_query_arg) :
limit_clause_param(FALSE),
state(NO_VALUE), state(NO_VALUE),
item_result_type(STRING_RESULT), item_result_type(STRING_RESULT),
/* Don't pretend to be a literal unless value for this item is set. */ /* Don't pretend to be a literal unless value for this item is set. */
item_type(PARAM_ITEM), item_type(PARAM_ITEM),
param_type(MYSQL_TYPE_VARCHAR), param_type(MYSQL_TYPE_VARCHAR),
pos_in_query(pos_in_query_arg), pos_in_query(pos_in_query_arg),
set_param_func(default_set_param_func) set_param_func(default_set_param_func),
limit_clause_param(FALSE)
{ {
name= (char*) "?"; name= (char*) "?";
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment