~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Stewart Smith
  • Date: 2011-01-14 05:15:23 UTC
  • mto: (2086.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2087.
  • Revision ID: stewart@flamingspork.com-20110114051523-n57f99sr3qzs9ijw
rearrange explanation of absence of old weird types in numeric data types doc to be after explanation of what we do have. I think it reads better that way

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>
 
20
#include "config.h"
21
21
 
22
 
#include <drizzled/function/time/makedate.h>
23
 
#include <drizzled/time_functions.h>
 
22
#include "drizzled/function/time/makedate.h"
 
23
#include "drizzled/time_functions.h"
24
24
 
25
25
namespace drizzled
26
26
{
56
56
  {
57
57
    null_value=0;
58
58
    get_date_from_daynr(days,&l_time.year,&l_time.month,&l_time.day);
59
 
    if (str->alloc(type::Time::MAX_STRING_LENGTH))
 
59
    if (str->alloc(MAX_DATE_STRING_REP_LENGTH))
60
60
      goto err;
61
 
 
62
 
    l_time.convert(*str, type::DRIZZLE_TIMESTAMP_DATE);
63
 
 
 
61
    make_date(&l_time, str);
64
62
    return str;
65
63
  }
66
64