Commit 322a99b0 authored by Olivier Bertrand's avatar Olivier Bertrand

- Fix check_if_incompatible_data to correctly get thd.

modified:
  storage/connect/ha_connect.cc
parent 2ad6e653
...@@ -4097,9 +4097,10 @@ bool ha_connect::check_if_incompatible_data(HA_CREATE_INFO *info, ...@@ -4097,9 +4097,10 @@ bool ha_connect::check_if_incompatible_data(HA_CREATE_INFO *info,
//ha_table_option_struct *param_old, *param_new; //ha_table_option_struct *param_old, *param_new;
DBUG_ENTER("ha_connect::check_if_incompatible_data"); DBUG_ENTER("ha_connect::check_if_incompatible_data");
// TO DO: implement it. // TO DO: implement it.
if (table) THD *thd= current_thd;
push_warning(table->in_use, MYSQL_ERROR::WARN_LEVEL_WARN, 0,
"The current version of CONNECT did not check what you changed in ALTER. Use on your own risk"); push_warning(thd, MYSQL_ERROR::WARN_LEVEL_WARN, 0,
"The current version of CONNECT did not check what you changed in ALTER. Use at your own risk");
DBUG_RETURN(COMPATIBLE_DATA_YES); DBUG_RETURN(COMPATIBLE_DATA_YES);
} }
......
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