~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
{
159
159
  str->append('(');
160
160
  args[0]->print(str);
161
 
  str->append(date_sub_interval?" - interval ":" + interval ");
 
161
  if (date_sub_interval)
 
162
  {
 
163
    str->append(STRING_WITH_LEN(" - interval "));
 
164
  }
 
165
  else
 
166
  {
 
167
    str->append(STRING_WITH_LEN(" + interval "));
 
168
  }
162
169
  args[1]->print(str);
163
170
  str->append(' ');
164
 
  str->append(interval_names[int_type]);
 
171
  str->append(interval_names[int_type], strlen(interval_names[int_type]));
165
172
  str->append(')');
166
173
}
167
174