~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/tableprototester/tableprototester.cc

  • Committer: lbieber
  • Date: 2010-09-26 02:09:47 UTC
  • mfrom: (1791.3.5 local-catalog)
  • mto: This revision was merged to the branch mainline in revision 1794.
  • Revision ID: lbieber@orisndriz08-20100926020947-o28psemscwvlwg05
Merge Monty - Beginning of catalog support, adds a default local catalog. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
 
118
118
bool TableProtoTesterEngine::doDoesTableExist(Session&, const drizzled::TableIdentifier &identifier)
119
119
{
120
 
  if (not identifier.getPath().compare("./test/t1"))
121
 
    return true;
122
 
  if (not identifier.getPath().compare("./test/too_many_enum_values"))
123
 
    return true;
124
 
  if (not identifier.getPath().compare("./test/invalid_table_collation"))
 
120
  if (not identifier.getPath().compare("test/t1"))
 
121
    return true;
 
122
  if (not identifier.getPath().compare("test/too_many_enum_values"))
 
123
    return true;
 
124
  if (not identifier.getPath().compare("test/invalid_table_collation"))
125
125
    return true;
126
126
 
127
127
  return false;
238
238
                                                 const drizzled::TableIdentifier &identifier,
239
239
                                                 drizzled::message::Table &table_proto)
240
240
{
241
 
  if (not identifier.getPath().compare("./test/t1"))
 
241
  if (not identifier.getPath().compare("test/t1"))
242
242
  {
243
243
    fill_table1(table_proto);
244
244
    return EEXIST;
245
245
  }
246
 
  else if (not identifier.getPath().compare("./test/too_many_enum_values"))
 
246
  else if (not identifier.getPath().compare("test/too_many_enum_values"))
247
247
  {
248
248
    fill_table_too_many_enum_values(table_proto);
249
249
    return EEXIST;
250
250
  }
251
 
  else if (not identifier.getPath().compare("./test/invalid_table_collation"))
 
251
  else if (not identifier.getPath().compare("test/invalid_table_collation"))
252
252
  {
253
253
    fill_table_invalid_table_collation(table_proto);
254
254
    return EEXIST;