~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_identifier.h

  • Committer: Siddharth Prakash Singh
  • Date: 2010-03-26 19:25:23 UTC
  • mfrom: (1410 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1425.
  • Revision ID: spsneo@spsneo-laptop-20100326192523-ibjlbt1p692vobtj
merging with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
#include <drizzled/enum.h>
36
36
#include "drizzled/definitions.h"
 
37
#include "drizzled/message/table.pb.h"
37
38
#include <string.h>
38
39
 
39
40
#include <assert.h>
87
88
    type(TEMP_TABLE),
88
89
    path(path_arg),
89
90
    db(path_arg),
90
 
    table_name(path_arg),
91
 
    sql_path(db)
92
 
  { 
 
91
    table_name(path_arg)
 
92
  { 
 
93
    sql_path.append("temporary");
 
94
    sql_path.append(".");
 
95
    sql_path.append(table_name);
 
96
  }
 
97
 
 
98
  TableIdentifier(const char *schema_name_arg, const char *table_name_arg, const char *path_arg ) :
 
99
    type(TEMP_TABLE),
 
100
    path(path_arg),
 
101
    db(schema_name_arg),
 
102
    table_name(table_name_arg)
 
103
  { 
 
104
    sql_path.append("temporary");
93
105
    sql_path.append(".");
94
106
    sql_path.append(table_name);
95
107
  }
121
133
    return table_name;
122
134
  }
123
135
 
 
136
  void copyToTableMessage(message::Table &message);
 
137
 
124
138
  friend std::ostream& operator<<(std::ostream& output, const TableIdentifier &identifier)
125
139
  {
126
140
    const char *type_str;