~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/show.cc

  • Committer: Brian Aker
  • Date: 2011-02-04 09:28:16 UTC
  • mfrom: (2140.1.4 timestamp)
  • mto: This revision was merged to the branch mainline in revision 2144.
  • Revision ID: brian@tangent.org-20110204092816-2s32j9hlh6ztz7ti
Merge in fix for not found table (simplifies the caller as well).

Events are now just being processed on shared tables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
345
345
    drizzled::identifier::Table identifier(select->getShowSchema().c_str(), table_ident->table.str);
346
346
    if (not plugin::StorageEngine::doesTableExist(*session, identifier))
347
347
    {
348
 
      my_error(ER_NO_SUCH_TABLE, MYF(0),
349
 
               select->getShowSchema().c_str(), 
350
 
               table_ident->table.str);
 
348
      my_error(ER_TABLE_UNKNOWN, identifier);
351
349
    }
352
350
  }
353
351
 
405
403
    drizzled::identifier::Table identifier(select->getShowSchema().c_str(), table_ident->table.str);
406
404
    if (not plugin::StorageEngine::doesTableExist(*session, identifier))
407
405
    {
408
 
      my_error(ER_NO_SUCH_TABLE, MYF(0),
409
 
               select->getShowSchema().c_str(), 
410
 
               table_ident->table.str);
 
406
      my_error(ER_TABLE_UNKNOWN, identifier);
411
407
    }
412
408
  }
413
409
 
630
626
    drizzled::identifier::Table identifier(select->getShowSchema().c_str(), ident->table.str);
631
627
    if (not plugin::StorageEngine::doesTableExist(*session, identifier))
632
628
    {
633
 
      my_error(ER_NO_SUCH_TABLE, MYF(0),
634
 
               select->getShowSchema().c_str(), 
635
 
               ident->table.str);
 
629
      my_error(ER_TABLE_UNKNOWN, identifier);
636
630
    }
637
631
  }
638
632