-
Committer:
Jay Pipes
-
Date:
2009-01-28 02:39:29 UTC
-
mto:
This revision was merged to the branch mainline in
revision
815.
-
Revision ID:
jpipes@serialcoder-20090128023929-gy7mot4ki11taytg
First function cleanup for temporal handling: YEAR()
* Added source files for calendrical calculations:
drizzled/calendar.h
drizzled/calendar.cc
* Added source files for new Temporal classes
drizzled/temporal.h
drizzled/temporal.cc
drizzled/temporal_format.h
drizzled/temporal_format.cc
Modified drizzled/function/time/year.cc to use the new
Temporal classes instead of the DRIZZLE_TIME struct and
get_date().
Added new error codes for invalid DATETIME values and ensured
bad datetimes throw errors in calls to YEAR().
Added new test case specifically for the YEAR() function
Modified existing func_time and type_date test cases to expect
errors when calling YEAR() with bad datetimes.
Edited Makefile.am in drizzled/ to ensure libpcre is used during
build and that calendar.cc, temporal.cc and temporal_format.cc are
built.