~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/create.h

  • Committer: Mark Atwood
  • Date: 2011-10-18 16:54:23 UTC
  • mfrom: (2440.2.4 rf)
  • Revision ID: me@mark.atwood.name-20111018165423-vboh6wowjnvn434f
mergeĀ lp:~olafvdspek/drizzle/refactor4

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
    @param item_list The list of arguments to the function, can be NULL
62
62
    @return An item representing the parsed function call, or NULL
63
63
  */
64
 
  virtual Item *create(Session *session, lex_string_t name, List<Item> *item_list) = 0;
 
64
  virtual Item *create(Session*, str_ref name, List<Item> *item_list) = 0;
65
65
 
66
66
protected:
67
67
  virtual ~Create_func() {}
84
84
    @param item_list The list of arguments to the function, can be NULL
85
85
    @return An item representing the parsed function call
86
86
  */
87
 
  virtual Item *create(Session *session, lex_string_t name, List<Item> *item_list);
 
87
  virtual Item *create(Session*, str_ref name, List<Item> *item_list);
88
88
 
89
89
  /**
90
90
    The builder create method, for qualified functions.
95
95
    @param item_list The list of arguments to the function, can be NULL
96
96
    @return An item representing the parsed function call
97
97
  */
98
 
  virtual Item* create(Session*, lex_string_t db, lex_string_t name, bool use_explicit_name, List<Item>*) = 0;
 
98
  virtual Item* create(Session*, str_ref db, str_ref name, bool use_explicit_name, List<Item>*) = 0;
99
99
};
100
100
 
101
101
 
104
104
  @param name The native function name
105
105
  @return The native function builder associated with the name, or NULL
106
106
*/
107
 
extern Create_func* find_native_function_builder(lex_string_t name);
 
107
extern Create_func* find_native_function_builder(str_ref name);
108
108
 
109
109
 
110
110
/**
122
122
class Create_udf_func : public Create_func
123
123
{
124
124
public:
125
 
  virtual Item *create(Session *session, lex_string_t name, List<Item> *item_list);
 
125
  virtual Item *create(Session*, str_ref name, List<Item> *item_list);
126
126
 
127
127
  /**
128
128
    The builder create method, for User Defined Functions.
131
131
    @param item_list The list of arguments to the function, can be NULL
132
132
    @return An item representing the parsed function call
133
133
  */
134
 
  Item *create(Session *session, const plugin::Function *fct, List<Item> *item_list);
 
134
  Item *create(Session*, const plugin::Function *fct, List<Item> *item_list);
135
135
 
136
136
  /** Singleton. */
137
137
  static Create_udf_func s_singleton;
142
142
};
143
143
 
144
144
Item*
145
 
create_func_char_cast(Session *session, Item *a, int len, const charset_info_st * const cs);
 
145
create_func_char_cast(Session*, Item *a, int len, const charset_info_st * const cs);
146
146
 
147
147
/**
148
148
  Builder for cast expressions.