~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_engine/schema.cc

  • Committer: Brian Aker
  • Date: 2010-06-09 16:23:25 UTC
  • mto: This revision was merged to the branch mainline in revision 1609.
  • Revision ID: brian@gaz-20100609162325-1x09l345c6ulzrdt
MergeĀ enumĀ test

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
    return false;
281
281
  }
282
282
 
283
 
  if (not db.SerializeToFileDescriptor(fd))
 
283
  bool success;
 
284
 
 
285
  try {
 
286
    success= db.SerializeToFileDescriptor(fd);
 
287
  }
 
288
  catch (...)
 
289
  {
 
290
    success= false;
 
291
  }
 
292
 
 
293
  if (not success)
284
294
  {
285
295
    my_error(ER_CORRUPT_SCHEMA_DEFINITION, MYF(0), schema_file.c_str(),
286
296
             db.InitializationErrorString().empty() ? "unknown" :  db.InitializationErrorString().c_str());