~drizzle-trunk/drizzle/development

  • Committer: Jay Pipes
  • Date: 2009-01-29 19:47:12 UTC
  • Revision ID: jpipes@serialcoder-20090129194712-2dtgucnwscs8di24
Fixes for SECOND() function to use new Temporal system.  Because
MySQL implicitly converts integers to strings, but only for 
DATETIME, not TIME, there is a bit of hack in functions/time/second.cc
right now which may be refactored when Temporals are made real, 
immutable ValueObjects.

Added new test case for the SECOND() function.

Added comments in function/time/year.cc to indicate a bit better
what we are doing, and added a define for the max length a datetime
is represented as a string.

Corrected regex matching in following ways:

Added start ^ and end $ to catch issues with greedy matching on dates
before datetime strings.

Added check for the usecond and nsecond indexes in the regex matches.
Checks for datetimes with microsecond parts were not properly being 
matched because of an incorrect calculation in TemporalFormat::matches()
Filename Latest Rev Last Changed Committer Comment Size
..
File autorun.sh 755.1.5 16 years ago Monty Taylor Reverted stupid change. 3.4 KB Diff Download File
File config.rpath 202.3.1 16 years ago Monty Taylor Added very initial gettextize stuff. 17.9 KB Diff Download File
uncrustify.cfg 656.1.17 16 years ago Monty Taylor Updated uncrustify config just a bit. 3.4 KB Diff Download File