~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.cc

  • Committer: Stewart Smith
  • Date: 2010-02-04 04:24:49 UTC
  • mto: (1286.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1287.
  • Revision ID: stewart@flamingspork.com-20100204042449-5syqleb3mx8rhejb
throw ER_CORRUPT_TABLE_DEFINITION in drizzled::parse_table_proto() on corrupt proto passed in for parsing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
{
261
261
  int error= 0;
262
262
 
 
263
  if (! table.IsInitialized())
 
264
  {
 
265
    my_error(ER_CORRUPT_TABLE_DEFINITION, MYF(0), table.InitializationErrorString().c_str());
 
266
    return ER_CORRUPT_TABLE_DEFINITION;
 
267
  }
 
268
 
263
269
  share->setTableProto(new(nothrow) message::Table(table));
264
270
 
265
271
  share->storage_engine= plugin::StorageEngine::findByName(session, table.engine().name());