~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/field.cc

  • Committer: Patrick Crews
  • Date: 2010-08-17 17:42:29 UTC
  • mfrom: (1711.1.24 build)
  • Revision ID: gleebix@gmail.com-20100817174229-e28p5025ndgkkxif
Rollup patch - optimizer fixes, mutex removal, client cleanup, translations update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1261
1261
    char buff[MAX_FIELD_WIDTH];
1262
1262
    String tmp(buff,sizeof(buff),str->charset());
1263
1263
    field->val_str(&tmp);
1264
 
    str->append('\'');
1265
 
    str->append(tmp);
1266
 
    str->append('\'');
 
1264
    if (field->is_null())  {
 
1265
      str->append("NULL");
 
1266
    }
 
1267
    else {
 
1268
      str->append('\'');
 
1269
      str->append(tmp);
 
1270
      str->append('\'');
 
1271
    }
1267
1272
    return;
1268
1273
  }
1269
1274
  Item_ident::print(str, query_type);