~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_ident.h

  • Committer: Olaf van der Spek
  • Date: 2011-10-26 10:23:23 UTC
  • mto: This revision was merged to the branch mainline in revision 2456.
  • Revision ID: olafvdspek@gmail.com-20111026102323-09bxs9tyqjxn3z04
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
{
32
32
public:
33
33
  lex_string_t db;
34
 
  lex_string_t table;
 
34
  str_ref table;
35
35
  Select_Lex_Unit *sel;
36
36
 
37
 
  Table_ident(lex_string_t db_arg, lex_string_t table_arg)
 
37
  Table_ident(lex_string_t db_arg, str_ref table_arg)
38
38
    : db(db_arg), table(table_arg), sel(NULL)
39
39
  {
40
40
  }
51
51
    Later, if there was an alias specified for the table, it will be set
52
52
    by add_table_to_list.
53
53
  */
54
 
  explicit Table_ident(Select_Lex_Unit *s) : sel(s)
 
54
  explicit Table_ident(Select_Lex_Unit *s) : 
 
55
    table("*"), sel(s)
55
56
  {
56
57
    /* We must have a table name here as this is used with add_table_to_list */
57
58
    db.assign("", 0); // a subject to casedn_str
58
 
    table.assign("*", 1);
59
59
  }
60
60
  bool is_derived_table() const { return test(sel); }
61
61
};