~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/varstring.cc

  • Committer: Brian Aker
  • Date: 2008-08-20 03:21:20 UTC
  • Revision ID: brian@tangent.org-20080820032120-lv3c5pu3owhex19j
flag cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
 
248
248
void Field_varstring::sql_type(String &res) const
249
249
{
250
 
  THD *thd= table->in_use;
251
250
  const CHARSET_INFO * const cs=res.charset();
252
251
  uint32_t length;
253
252
 
256
255
                              (has_charset() ? "varchar" : "varbinary"),
257
256
                             (int) field_length / charset()->mbmaxlen);
258
257
  res.length(length);
259
 
  if ((thd->variables.sql_mode & (MODE_MYSQL323 | MODE_MYSQL40)) &&
260
 
      has_charset() && (charset()->state & MY_CS_BINSORT))
261
 
    res.append(STRING_WITH_LEN(" binary"));
262
258
}
263
259
 
264
260