~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/haildb/haildb_engine.cc

  • Committer: Lee Bieber
  • Date: 2010-11-12 19:03:08 UTC
  • mfrom: (1923.1.4 trunk)
  • Revision ID: kalebral@gmail.com-20101112190308-lyejhhgpfaf9r8f3
Merge Brian - Encapsulate up the cache we use in Session for tracking table proto for temp tables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1208
1208
 
1209
1209
  if (table_message.type() == message::Table::TEMPORARY)
1210
1210
  {
1211
 
    session.storeTableMessage(identifier, table_message);
 
1211
    session.getMessageCache().storeTableMessage(identifier, table_message);
1212
1212
    haildb_err= DB_SUCCESS;
1213
1213
  }
1214
1214
  else
1300
1300
 
1301
1301
  if (identifier.getType() == message::Table::TEMPORARY)
1302
1302
  {
1303
 
      session.removeTableMessage(identifier);
 
1303
      session.getMessageCache().removeTableMessage(identifier);
1304
1304
      delete_table_message_from_haildb(haildb_schema_transaction,
1305
1305
                                       haildb_table_name.c_str());
1306
1306
  }
1458
1458
  if (to.getType() == message::Table::TEMPORARY
1459
1459
      && from.getType() == message::Table::TEMPORARY)
1460
1460
  {
1461
 
    session.renameTableMessage(from, to);
 
1461
    session.getMessageCache().renameTableMessage(from, to);
1462
1462
    return 0;
1463
1463
  }
1464
1464
 
1729
1729
  string haildb_table_name;
1730
1730
 
1731
1731
  /* Check temporary tables!? */
1732
 
  if (session.getTableMessage(identifier, table))
 
1732
  if (session.getMessageCache().getTableMessage(identifier, table))
1733
1733
    return EEXIST;
1734
1734
 
1735
1735
  TableIdentifier_to_haildb_name(identifier, &haildb_table_name);