~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/date.cc

  • Committer: Lee Bieber
  • Date: 2011-02-10 01:09:23 UTC
  • mfrom: (2152.2.1 alter-table)
  • Revision ID: kalebral@gmail.com-20110210010923-mbwuwow0nudk7ryh
Merge Brian - more parser rework

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
  {
134
134
    tmp= ltime.year*10000 + ltime.month*100 + ltime.day;
135
135
 
 
136
    Session *session= getTable() ? getTable()->in_use : current_session;
136
137
    type::cut_t cut_error= type::VALID;
137
138
    if (ltime.check(tmp != 0,
138
139
                     (TIME_FUZZY_DATE |
139
 
                      (current_session->variables.sql_mode &
140
 
                       (MODE_NO_ZERO_DATE | MODE_INVALID_DATES))), cut_error))
 
140
                      (session->variables.sql_mode & (MODE_NO_ZERO_DATE | MODE_INVALID_DATES))), cut_error))
141
141
    {
142
142
      char buff[type::Time::MAX_STRING_LENGTH];
143
143
      String str(buff, sizeof(buff), &my_charset_utf8_general_ci);