23 #include <plugin/error_dictionary/errors.h>
24 #include <drizzled/error/sql_state.h>
29 error_dictionary::Errors::Errors() :
32 add_field(
"ERROR_CODE", drizzled::plugin::TableFunction::NUMBER);
33 add_field(
"ERROR_NAME");
34 add_field(
"ERROR_MESSAGE");
35 add_field(
"ERROR_SQL_STATE");
40 _error_map(
drizzled::ErrorMap::get_error_message_map()),
41 _iter(
drizzled::ErrorMap::get_error_message_map().begin())
44 bool error_dictionary::Errors::Generator::populate()
46 if (_iter == _error_map.end())
49 push(uint64_t((*_iter).first));
50 push((*_iter).second.first);
51 push((*_iter).second.second);
52 push(drizzled::error::convert_to_sqlstate((*_iter).first));
TODO: Rename this file - func.h is stupid.