~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/curdate.cc

Updated an include guard thanks to a nice catch during code review from Jay. Thanks Jay!

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
 
#include "config.h"
21
 
 
 
20
#include "drizzled/server_includes.h"
 
21
#include CSTDINT_H
22
22
#include "drizzled/function/time/curdate.h"
23
23
#include "drizzled/tztime.h"
24
24
#include "drizzled/temporal.h"
25
25
#include "drizzled/session.h"
26
26
 
27
 
namespace drizzled
28
 
{
29
 
 
30
27
void Item_func_curdate::fix_length_and_dec()
31
28
{
32
29
  collation.set(&my_charset_bin);
33
30
  decimals=0;
34
 
  max_length=Date::MAX_STRING_LENGTH*MY_CHARSET_BIN_MB_MAXLEN;
 
31
  max_length=drizzled::Date::MAX_STRING_LENGTH*MY_CHARSET_BIN_MB_MAXLEN;
35
32
 
36
33
  store_now_in_TIME(&ltime);
37
34
 
86
83
  now_time->second= 0;
87
84
}
88
85
 
89
 
bool Item_func_curdate::get_temporal(Date &to)
 
86
bool Item_func_curdate::get_temporal(drizzled::Date &to)
90
87
{
91
88
  to= cached_temporal;
92
89
  return true;
93
90
}
94
 
 
95
 
} /* namespace drizzled */