Commit 9ae173c4 authored by unknown's avatar unknown

Also print warning if there is an ndb->mysql errorcode mapping, this since the...

Also print warning if there is an ndb->mysql errorcode mapping, this since the warning provides valuable info to the user


parent a2b3d71d
...@@ -144,10 +144,17 @@ static int ndb_to_mysql_error(const NdbError *err) ...@@ -144,10 +144,17 @@ static int ndb_to_mysql_error(const NdbError *err)
// Push the NDB error message as warning // Push the NDB error message as warning
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR, push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
ER_GET_ERRMSG, ER(ER_GET_ERRMSG), ER_GET_ERRMSG, ER(ER_GET_ERRMSG),
err->code, err->message, "NDB"); err->code, err->message, "NDB");
return err->code; return err->code;
} }
} }
// Push the NDB error message as warning
// this since e.g. HA_ERR_RECORD_FILE_FULL maps to
// several error codes in NDB, and the uses needs
// to know which one it is
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
ER_GET_ERRMSG, ER(ER_GET_ERRMSG),
err->code, err->message, "NDB");
return err_map[i].my_err; return err_map[i].my_err;
} }
......
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