Commit eede4140 authored by Marko Mäkelä's avatar Marko Mäkelä

Merge from mysql-5.1 to working copy.

parents bb849479 f58a6967
...@@ -756,12 +756,6 @@ void THD::clear_data_list() ...@@ -756,12 +756,6 @@ void THD::clear_data_list()
cur_data= 0; cur_data= 0;
} }
void THD::clear_error()
{
if (main_da.is_error())
main_da.reset_diagnostics_area();
}
static char *dup_str_aux(MEM_ROOT *root, const char *from, uint length, static char *dup_str_aux(MEM_ROOT *root, const char *from, uint length,
CHARSET_INFO *fromcs, CHARSET_INFO *tocs) CHARSET_INFO *fromcs, CHARSET_INFO *tocs)
{ {
......
...@@ -2089,7 +2089,6 @@ class THD :public Statement, ...@@ -2089,7 +2089,6 @@ class THD :public Statement,
void add_changed_table(const char *key, long key_length); void add_changed_table(const char *key, long key_length);
CHANGED_TABLE_LIST * changed_table_dup(const char *key, long key_length); CHANGED_TABLE_LIST * changed_table_dup(const char *key, long key_length);
int send_explain_fields(select_result *result); int send_explain_fields(select_result *result);
#ifndef EMBEDDED_LIBRARY
/** /**
Clear the current error, if any. Clear the current error, if any.
We do not clear is_fatal_error or is_fatal_sub_stmt_error since we We do not clear is_fatal_error or is_fatal_sub_stmt_error since we
...@@ -2105,9 +2104,9 @@ class THD :public Statement, ...@@ -2105,9 +2104,9 @@ class THD :public Statement,
is_slave_error= 0; is_slave_error= 0;
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
#ifndef EMBEDDED_LIBRARY
inline bool vio_ok() const { return net.vio != 0; } inline bool vio_ok() const { return net.vio != 0; }
#else #else
void clear_error();
inline bool vio_ok() const { return true; } inline bool vio_ok() const { return true; }
#endif #endif
/** /**
......
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