~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2011-02-14 05:47:07 UTC
  • mto: This revision was merged to the branch mainline in revision 2167.
  • Revision ID: brian@tangent.org-20110214054707-61nsqgg1g4w1zhx1
Merge in all changes for current_session, etc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
  }
117
117
  const char *month_name;
118
118
  uint32_t   month= (uint) val_int();
119
 
  Session *session= current_session;
120
119
 
121
120
  if (null_value || !month)
122
121
  {
124
123
    return (String*) 0;
125
124
  }
126
125
  null_value=0;
127
 
  month_name= session->variables.lc_time_names->month_names->type_names[month-1];
 
126
  month_name= getSession().variables.lc_time_names->month_names->type_names[month-1];
128
127
  str->set(month_name, strlen(month_name), system_charset_info);
129
128
  return str;
130
129
}