~mordred/drizzle/bug682773

« back to all changes in this revision

Viewing changes to drizzled/definition/table.h

  • Committer: Brian Aker
  • Date: 2010-11-28 20:44:02 UTC
  • mfrom: (1954.2.4 alter-table)
  • Revision ID: brian@tangent.org-20101128204402-e6ab9fucshilci81
Merge in table identifier work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
  typedef boost::shared_ptr<TableShare> shared_ptr;
67
67
  typedef std::vector <shared_ptr> vector;
68
68
 
69
 
  TableShare(TableIdentifier::Type type_arg);
 
69
  TableShare(const TableIdentifier::Type type_arg);
70
70
 
71
 
  TableShare(TableIdentifier &identifier, const TableIdentifier::Key &key); // Used by placeholder
 
71
  TableShare(const TableIdentifier &identifier, const TableIdentifier::Key &key); // Used by placeholder
72
72
 
73
73
  TableShare(const TableIdentifier &identifier); // Just used during createTable()
74
74
 
75
 
  TableShare(TableIdentifier::Type type_arg,
76
 
             TableIdentifier &identifier,
 
75
  TableShare(const TableIdentifier::Type type_arg,
 
76
             const TableIdentifier &identifier,
77
77
             char *path_arg= NULL, uint32_t path_length_arg= 0); // Shares for cache
78
78
 
79
79
  ~TableShare();
603
603
    NOTES
604
604
  */
605
605
 
606
 
  void setIdentifier(TableIdentifier &identifier_arg);
 
606
  void setIdentifier(const TableIdentifier &identifier_arg);
607
607
 
608
608
  /*
609
609
    Initialize share for temporary tables
630
630
 
631
631
  static void release(TableShare *share);
632
632
  static void release(TableShare::shared_ptr &share);
633
 
  static void release(TableIdentifier &identifier);
 
633
  static void release(const TableIdentifier &identifier);
634
634
  static TableShare::shared_ptr getShareCreate(Session *session, 
635
 
                                               TableIdentifier &identifier,
 
635
                                               const TableIdentifier &identifier,
636
636
                                               int &error);
637
637
 
638
638
  friend std::ostream& operator<<(std::ostream& output, const TableShare &share)
662
662
                    TYPELIB *interval,
663
663
                    const char *field_name);
664
664
 
665
 
  int open_table_def(Session& session, TableIdentifier &identifier);
 
665
  int open_table_def(Session& session, const TableIdentifier &identifier);
666
666
 
667
667
  int open_table_from_share(Session *session,
668
668
                            const TableIdentifier &identifier,