~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/temporary.h

  • Committer: Brian Aker
  • Date: 2011-02-03 20:32:09 UTC
  • mfrom: (2139.1.4 drizzle-build)
  • Revision ID: brian@tangent.org-20110203203209-r1t4knmy15x5n1w2
Rollup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
class Temporary : public Table
31
31
{
32
 
  TableShare *_share; /**< Pointer to the shared metadata about the table */
 
32
  instance::Singular *_share; /**< Pointer to the shared metadata about the table */
33
33
 
34
34
public:
35
35
  Temporary(const identifier::Table::Type type_arg,
37
37
             char *path_arg, uint32_t path_length_arg) :
38
38
    Table()
39
39
  {
40
 
    _share= new TableShare(type_arg, identifier, path_arg, path_length_arg);
 
40
    _share= new instance::Singular(type_arg, identifier, path_arg, path_length_arg);
41
41
  }
42
42
 
43
43
  ~Temporary()
47
47
  virtual const TableShare *getShare() const { assert(_share); return _share; } /* Get rid of this long term */
48
48
  virtual TableShare *getMutableShare() { assert(_share); return _share; } /* Get rid of this long term */
49
49
  virtual bool hasShare() const { return _share ? true : false ; } /* Get rid of this long term */
50
 
  virtual void setShare(TableShare *new_share) { _share= new_share; } /* Get rid of this long term */
 
50
  virtual void setShare(TableShare *new_share)
 
51
  {
 
52
    _share= static_cast<instance::Singular *>(new_share);
 
53
  }
51
54
 
52
55
  void release(void)
53
56
  {