~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.h

  • Committer: Lee Bieber
  • Date: 2010-01-30 23:42:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1282.
  • Revision ID: lbieber@lee-biebers-macbook-pro.local-20100130234202-sxmqfteqwiq15ptg
add target to japanese tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
#include <bitset>
42
42
#include <string>
43
43
 
44
 
namespace drizzled
45
 
{
46
 
 
47
44
class select_result_interceptor;
48
45
 
49
46
/* YACC and LEX Definitions */
54
51
class Lex_Column;
55
52
class Item_outer_ref;
56
53
 
57
 
} /* namespace drizzled */
58
 
 
59
54
/*
60
55
  The following hack is needed because mysql_yacc.cc does not define
61
56
  YYSTYPE before including this file
87
82
#define DERIVED_NONE    0
88
83
#define DERIVED_SUBQUERY        1
89
84
 
90
 
namespace drizzled
91
 
{
92
 
 
93
85
typedef List<Item> List_item;
94
86
 
95
87
enum sub_select_type
255
247
 
256
248
  static void *operator new(size_t size)
257
249
  {
258
 
    return memory::sql_alloc(size);
 
250
    return drizzled::memory::sql_alloc(size);
259
251
  }
260
 
  static void *operator new(size_t size, memory::Root *mem_root)
 
252
  static void *operator new(size_t size, drizzled::memory::Root *mem_root)
261
253
  { return (void*) alloc_root(mem_root, (uint32_t) size); }
262
254
  static void operator delete(void *, size_t)
263
255
  {  }
264
 
  static void operator delete(void *, memory::Root *)
 
256
  static void operator delete(void *, drizzled::memory::Root *)
265
257
  {}
266
258
  Select_Lex_Node(): linkage(UNSPECIFIED_TYPE) {}
267
259
  virtual ~Select_Lex_Node() {}
737
729
  DISCARD_COMMENT
738
730
};
739
731
 
740
 
} /* namespace drizzled */
741
 
 
742
732
#include "drizzled/lex_input_stream.h"
743
733
 
744
 
namespace drizzled
745
 
{
746
 
 
747
734
/* The state of the lex parsing. This is saved in the Session struct */
748
735
class LEX : public Query_tables_list
749
736
{
814
801
  SQL_LIST save_list;
815
802
  CreateField *last_field;
816
803
  Item_sum *in_sum_func;
817
 
  plugin::Function *udf;
 
804
  drizzled::plugin::Function *udf;
818
805
  uint32_t type;
819
806
  /*
820
807
    This variable is used in post-parse stage to declare that sum-functions,
827
814
  */
828
815
  nesting_map allow_sum_func;
829
816
  enum_sql_command sql_command;
830
 
  statement::Statement *statement;
 
817
  drizzled::statement::Statement *statement;
831
818
  /*
832
819
    Usually `expr` rule of yacc is quite reused but some commands better
833
820
    not support subqueries which comes standard with this rule, like
842
829
    enum ha_rkey_function ha_rkey_mode;
843
830
    enum xa_option_words xa_opt;
844
831
  };
845
 
  sql_var_t option_type;
 
832
  enum enum_var_type option_type;
846
833
 
847
834
  int nest_level;
848
835
  uint8_t describe;
852
839
  */
853
840
  uint8_t derived_tables;
854
841
 
 
842
  /* Only true when FULL symbol is found (e.g. SHOW FULL PROCESSLIST) */
 
843
  bool verbose;
 
844
  
855
845
  /* Was the IGNORE symbol found in statement */
856
846
  bool ignore;
857
847
 
940
930
  @} (End of group Semantic_Analysis)
941
931
*/
942
932
 
943
 
} /* namespace drizzled */
944
 
 
945
933
#endif /* DRIZZLE_SERVER */
946
934
#endif /* DRIZZLED_SQL_LEX_H */