~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definition/table.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:
1969
1969
/* error message when opening a form cursor */
1970
1970
void TableShare::open_table_error(int pass_error, int db_errno, int pass_errarg)
1971
1971
{
1972
 
  int err_no;
1973
1972
  char buff[FN_REFLEN];
1974
1973
  myf errortype= ME_ERROR+ME_WAITTANG;
1975
1974
 
1989
1988
    break;
1990
1989
  case 2:
1991
1990
    {
 
1991
      drizzled::drizzled_error_code err_no;
 
1992
 
1992
1993
      err_no= (db_errno == ENOENT) ? ER_FILE_NOT_FOUND : (db_errno == EAGAIN) ?
1993
1994
        ER_FILE_USED : ER_CANT_OPEN_FILE;
 
1995
 
1994
1996
      my_error(err_no, errortype, normalized_path.str, db_errno);
1995
1997
      break;
1996
1998
    }