~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/func.h

  • Committer: Brian Aker
  • Date: 2011-01-06 05:17:09 UTC
  • Revision ID: brian@tangent.org-20110106051709-oa0se8ur02uc6i9o
Added native functions into the function table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
 
21
 
 
22
20
#ifndef DRIZZLED_FUNCTION_FUNC_H
23
21
#define DRIZZLED_FUNCTION_FUNC_H
24
22
 
25
23
/// TODO: Rename this file - func.h is stupid.
26
24
 
27
 
#include <drizzled/charset_info.h>
28
 
#include <drizzled/current_session.h>
29
25
#include <drizzled/item.h>
 
26
#include <drizzled/sql_list.h>
30
27
#include <drizzled/item/bin_string.h>
31
 
#include <drizzled/lex_string.h>
32
 
#include <drizzled/sql_list.h>
33
 
#include <drizzled/type/decimal.h>
34
 
 
35
 
#include "drizzled/visibility.h"
 
28
#include "drizzled/current_session.h"
36
29
 
37
30
namespace drizzled
38
31
{
39
32
 
40
 
class DRIZZLED_API Item_func :
41
 
  public Item_result_field
 
33
class Item_func :public Item_result_field
42
34
{
43
35
  Session &_session;
44
36
 
197
189
  void count_real_length();
198
190
  void count_decimal_length();
199
191
 
200
 
  bool get_arg0_date(type::Time &ltime, uint32_t fuzzy_date);
201
 
  bool get_arg0_time(type::Time &ltime);
 
192
  bool get_arg0_date(type::Time *ltime, uint32_t fuzzy_date);
 
193
  bool get_arg0_time(type::Time *ltime);
202
194
 
203
195
  bool is_null();
204
196