~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzleimport.cc

  • Committer: Toru Maesaka
  • Date: 2008-12-14 08:26:38 UTC
  • mto: (670.1.24 devel)
  • mto: This revision was merged to the branch mainline in revision 676.
  • Revision ID: dev@torum.net-20081214082638-c8uje8oiwk4s2dh0
First pass of replacing MySQL's strxmov with libc alternatives

Show diffs side-by-side

added added

removed removed

Lines of Context:
444
444
  {
445
445
    /* Don't escape hex constants */
446
446
    if (object[0] == '0' && (object[1] == 'x' || object[1] == 'X'))
447
 
      ptr= strxmov(ptr," ",statement," ",object,NULL);
 
447
      ptr+= sprintf(ptr, " %s %s", statement, object);
448
448
    else
449
449
    {
450
450
      /* char constant; escape */
451
 
      ptr= strxmov(ptr," ",statement," '",NULL);
 
451
      ptr+= sprintf(ptr, " %s '", statement); 
452
452
      ptr= field_escape(ptr,object,(uint) strlen(object));
453
453
      *ptr++= '\'';
454
454
    }