~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.cc

  • Committer: Brian Aker
  • Date: 2011-01-04 22:27:38 UTC
  • mfrom: (2041.3.16 session-fix)
  • mto: This revision was merged to the branch mainline in revision 2055.
  • Revision ID: brian@tangent.org-20110104222738-4r3hrsxrlbuildrg
Merge in cleanup of error messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
768
768
 
769
769
void StorageEngine::print_error(int error, myf errflag, Table *table)
770
770
{
771
 
  int textno= ER_GET_ERRNO;
 
771
  drizzled::drizzled_error_code textno= ER_GET_ERRNO;
772
772
  switch (error) {
773
773
  case EACCES:
774
774
    textno=ER_OPEN_AS_READONLY;
846
846
    textno=ER_CRASHED_ON_USAGE;
847
847
    break;
848
848
  case HA_ERR_NOT_A_TABLE:
849
 
    textno= error;
 
849
    textno= static_cast<drizzled::drizzled_error_code>(error);
850
850
    break;
851
851
  case HA_ERR_CRASHED_ON_REPAIR:
852
852
    textno=ER_CRASHED_ON_REPAIR;