~jaypipes/drizzle/xa-transaction-log

« back to all changes in this revision

Viewing changes to drizzled/table_identifier.h

  • Committer: Jay Pipes
  • Date: 2010-03-05 18:24:28 UTC
  • mfrom: (1273.1.51 staging)
  • Revision ID: jpipes@serialcoder-20100305182428-9m16fszbs3mvdhe0
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
  char path[FN_REFLEN];
57
57
  const char *db;
58
58
  const char *table_name;
 
59
  std::string sql_path;
59
60
 
60
61
public:
61
62
  TableIdentifier( const char *db_arg,
64
65
    path_inited(false),
65
66
    type(tmp_arg),
66
67
    db(db_arg),
67
 
    table_name(table_name_arg)
68
 
  { }
 
68
    table_name(table_name_arg),
 
69
    sql_path(db)
 
70
  { 
 
71
    sql_path.append(".");
 
72
    sql_path.append(table_name);
 
73
  }
69
74
 
70
75
  bool isTmp() const
71
76
  {
72
77
    return type == STANDARD_TABLE ? false  : true;
73
78
  }
74
79
 
 
80
  const std::string &getSQLPath()
 
81
  {
 
82
    return sql_path;
 
83
  }
 
84
 
75
85
  const char *getPath();
76
86
 
77
87
  const char *getDBName() const