~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_ident.h

  • Committer: Monty Taylor
  • Date: 2009-12-27 00:49:03 UTC
  • mto: This revision was merged to the branch mainline in revision 1255.
  • Revision ID: mordred@inaugust.com-20091227004903-maw7ktxu6i6hye9b
Moved mem_root functions into drizzled::memory:: namespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_TABLE_IDENT_H
22
22
#define DRIZZLED_TABLE_IDENT_H
23
23
 
24
 
#include "drizzled/session.h"
25
 
 
26
 
namespace drizzled
27
 
{
28
 
 
29
24
/* Structure for db & table in sql_yacc */
30
 
class Table_ident :public memory::SqlAlloc
 
25
class Table_ident :public drizzled::memory::SqlAlloc
31
26
{
32
27
public:
33
28
  LEX_STRING db;
38
33
  {
39
34
    db= db_arg;
40
35
  }
41
 
  explicit Table_ident(LEX_STRING table_arg)
 
36
  inline Table_ident(LEX_STRING table_arg)
42
37
    :table(table_arg), sel((Select_Lex_Unit *)0)
43
38
  {
44
39
    db.str=0;
49
44
    Later, if there was an alias specified for the table, it will be set
50
45
    by add_table_to_list.
51
46
  */
52
 
  explicit Table_ident(Select_Lex_Unit *s) : sel(s)
 
47
  inline Table_ident(Select_Lex_Unit *s) : sel(s)
53
48
  {
54
49
    /* We must have a table name here as this is used with add_table_to_list */
55
50
    db.str= empty_c_string;                    /* a subject to casedn_str */
64
59
  }
65
60
};
66
61
 
67
 
} /* namespace drizzled */
68
 
 
69
62
#endif /* DRIZZLED_TABLE_IDENT_H */