~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_ident.h

  • Committer: Monty Taylor
  • Date: 2010-01-12 21:34:24 UTC
  • mto: This revision was merged to the branch mainline in revision 1268.
  • Revision ID: mordred@inaugust.com-20100112213424-6mslywtlca49mvnk
Updated to pandora-buld v0.94

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
21
21
#ifndef DRIZZLED_TABLE_IDENT_H
22
22
#define DRIZZLED_TABLE_IDENT_H
23
23
 
24
 
#include <drizzled/lex_string.h>
25
 
#include <drizzled/memory/sql_alloc.h>
26
 
#include <drizzled/util/test.h>
27
 
 
28
 
namespace drizzled
29
 
{
30
 
 
31
 
extern char empty_c_string[1];
32
 
extern char internal_table_name[2];
33
 
 
34
24
/* Structure for db & table in sql_yacc */
35
 
class Table_ident :public memory::SqlAlloc
 
25
class Table_ident :public drizzled::memory::SqlAlloc
36
26
{
37
27
public:
38
28
  LEX_STRING db;
43
33
  {
44
34
    db= db_arg;
45
35
  }
46
 
  explicit Table_ident(LEX_STRING table_arg)
 
36
  inline Table_ident(LEX_STRING table_arg)
47
37
    :table(table_arg), sel((Select_Lex_Unit *)0)
48
38
  {
49
39
    db.str=0;
54
44
    Later, if there was an alias specified for the table, it will be set
55
45
    by add_table_to_list.
56
46
  */
57
 
  explicit Table_ident(Select_Lex_Unit *s) : sel(s)
 
47
  inline Table_ident(Select_Lex_Unit *s) : sel(s)
58
48
  {
59
49
    /* We must have a table name here as this is used with add_table_to_list */
60
50
    db.str= empty_c_string;                    /* a subject to casedn_str */
69
59
  }
70
60
};
71
61
 
72
 
} /* namespace drizzled */
73
 
 
74
62
#endif /* DRIZZLED_TABLE_IDENT_H */