~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/create_field.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-07 13:41:07 UTC
  • mto: This revision was merged to the branch mainline in revision 2385.
  • Revision ID: olafvdspek@gmail.com-20110707134107-6mi7pauiatxtf4oe
Rename strmake to strdup (standard name)

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
      char buff[MAX_FIELD_WIDTH];
118
118
      String tmp(buff, sizeof(buff), charset);
119
119
      String* res= orig_field->val_str_internal(&tmp);
120
 
      char* pos= memory::sql_strmake(res->ptr(), res->length());
 
120
      char* pos= memory::sql_strdup(res->ptr(), res->length());
121
121
      def= new Item_string(pos, res->length(), charset);
122
122
    }
123
123
    orig_field->move_field_offset(-diff);       // Back to getInsertRecord()