~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Lee Bieber
  • Date: 2010-11-14 23:15:42 UTC
  • mfrom: (1929.1.42 warning-stack-frame)
  • Revision ID: kalebral@gmail.com-20101114231542-fnnu6ydd2p17n582
Merge Monty - fix bug 672372: some functions use > 32k stack

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
30
30
class Item_func_curdate :public Item_date
31
31
{
32
32
protected:
33
 
  type::Time ltime;
 
33
  DRIZZLE_TIME ltime;
34
34
  Date cached_temporal;
35
35
public:
36
36
  Item_func_curdate() :Item_date() {}
50
50
   * @param Reference to a Date to populate
51
51
   */
52
52
  bool get_temporal(Date &temporal);
53
 
  virtual void store_now_in_TIME(type::Time *now_time)=0;
 
53
  virtual void store_now_in_TIME(DRIZZLE_TIME *now_time)=0;
54
54
};
55
55
 
56
56
class Item_func_curdate_local :public Item_func_curdate
58
58
public:
59
59
  Item_func_curdate_local() :Item_func_curdate() {}
60
60
  const char *func_name() const { return "curdate"; }
61
 
  void store_now_in_TIME(type::Time *now_time);
 
61
  void store_now_in_TIME(DRIZZLE_TIME *now_time);
62
62
};
63
63
 
64
64
class Item_func_curdate_utc :public Item_func_curdate
66
66
public:
67
67
  Item_func_curdate_utc() :Item_func_curdate() {}
68
68
  const char *func_name() const { return "utc_date"; }
69
 
  void store_now_in_TIME(type::Time *now_time);
 
69
  void store_now_in_TIME(DRIZZLE_TIME *now_time);
70
70
};
71
71
 
72
72
} /* namespace drizzled */