~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2009-02-04 18:28:00 UTC
  • mfrom: (813.1.26 new-temporal)
  • Revision ID: brian@tangent.org-20090204182800-ra3p8rlu4zrs9fvn
Merge from Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
  
42
42
  switch (arg0_result_type)
43
43
  {
 
44
    case DECIMAL_RESULT: 
 
45
      /* 
 
46
       * For doubles supplied, interpret the arg as a string, 
 
47
       * so intentionally fall-through here...
 
48
       * This allows us to accept double parameters like 
 
49
       * 19971231235959.01 and interpret it the way MySQL does:
 
50
       * as a TIMESTAMP-like thing with a microsecond component.
 
51
       * Ugh, but need to keep backwards-compat.
 
52
       */
44
53
    case STRING_RESULT:
45
54
      {
46
55
        char buff[DRIZZLE_MAX_LENGTH_DATETIME_AS_STRING];