~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2011-01-17 23:44:48 UTC
  • mfrom: (2088.1.5 drizzle-build)
  • Revision ID: brian@tangent.org-20110117234448-0tt6rd6fxa3csdaf
Rollup of all changes for identifier/error

Show diffs side-by-side

added added

removed removed

Lines of Context:
1482
1482
    @param level the error level
1483
1483
    @return true if the error is handled
1484
1484
  */
1485
 
  virtual bool handle_error(uint32_t sql_errno, const char *message,
 
1485
  virtual bool handle_error(drizzled::error_t sql_errno, const char *message,
1486
1486
                            DRIZZLE_ERROR::enum_warning_level level);
1487
1487
 
1488
1488
  /**
1753
1753
  void close_old_data_files(bool morph_locks= false,
1754
1754
                            bool send_refresh= false);
1755
1755
  void close_open_tables();
1756
 
  void close_data_files_and_morph_locks(const TableIdentifier &identifier);
 
1756
  void close_data_files_and_morph_locks(const identifier::Table &identifier);
1757
1757
 
1758
1758
private:
1759
1759
  bool free_cached_table();
1790
1790
  Table *openTable(TableList *table_list, bool *refresh, uint32_t flags= 0);
1791
1791
 
1792
1792
  void unlink_open_table(Table *find);
1793
 
  void drop_open_table(Table *table, const TableIdentifier &identifier);
 
1793
  void drop_open_table(Table *table, const identifier::Table &identifier);
1794
1794
  void close_cached_table(Table *table);
1795
1795
 
1796
1796
  /* Create a lock in the cache */
1797
 
  table::Placeholder *table_cache_insert_placeholder(const TableIdentifier &identifier);
1798
 
  bool lock_table_name_if_not_cached(const TableIdentifier &identifier, Table **table);
 
1797
  table::Placeholder *table_cache_insert_placeholder(const identifier::Table &identifier);
 
1798
  bool lock_table_name_if_not_cached(const identifier::Table &identifier, Table **table);
1799
1799
 
1800
1800
  typedef boost::unordered_map<std::string, message::Table, util::insensitive_hash, util::insensitive_equal_to> TableMessageCache;
1801
1801
 
1804
1804
    TableMessageCache table_message_cache;
1805
1805
 
1806
1806
  public:
1807
 
    bool storeTableMessage(const TableIdentifier &identifier, message::Table &table_message);
1808
 
    bool removeTableMessage(const TableIdentifier &identifier);
1809
 
    bool getTableMessage(const TableIdentifier &identifier, message::Table &table_message);
1810
 
    bool doesTableMessageExist(const TableIdentifier &identifier);
1811
 
    bool renameTableMessage(const TableIdentifier &from, const TableIdentifier &to);
1812
 
 
 
1807
    bool storeTableMessage(const identifier::Table &identifier, message::Table &table_message);
 
1808
    bool removeTableMessage(const identifier::Table &identifier);
 
1809
    bool getTableMessage(const identifier::Table &identifier, message::Table &table_message);
 
1810
    bool doesTableMessageExist(const identifier::Table &identifier);
 
1811
    bool renameTableMessage(const identifier::Table &from, const identifier::Table &to);
1813
1812
  };
 
1813
 
1814
1814
private:
1815
1815
  TableMessages _table_message_cache;
1816
1816