00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #pragma once
00021
00022 #include <drizzled/function/time/now.h>
00023
00024 namespace drizzled
00025 {
00026
00027
00028
00029
00030
00031 class Item_func_sysdate_local :public Item_func_now
00032 {
00033 public:
00034 Item_func_sysdate_local() :Item_func_now() {}
00035 Item_func_sysdate_local(Item *a) :Item_func_now(a) {}
00036 bool const_item() const { return 0; }
00037 const char *func_name() const { return "sysdate"; }
00038 void store_now_in_TIME(type::Time &now_time);
00039 double val_real();
00040 int64_t val_int();
00041 int save_in_field(Field *to, bool no_conversions);
00042 String *val_str(String *str);
00043 void fix_length_and_dec();
00044 bool get_date(type::Time &res, uint32_t fuzzy_date);
00045 void update_used_tables()
00046 {
00047 Item_func_now::update_used_tables();
00048 used_tables_cache|= RAND_TABLE_BIT;
00049 }
00050 };
00051
00052 }
00053