~thomir-deactivatedaccount/drizzle/drizzle-fix-bug653747

« back to all changes in this revision

Viewing changes to client/drizzledump_data.cc

  • Committer: lbieber at stabletransit
  • Date: 2010-10-16 20:13:23 UTC
  • mfrom: (1855.2.1 trunk-bug-656018)
  • Revision ID: lbieber@drizzle-build-n02.wc1.dfw1.stabletransit.com-20101016201323-dm1g25funk1vm0c1
Merge Andrew - fix bug #656018: drizzledump of text columns returning errors during import process       

Show diffs side-by-side

added added

removed removed

Lines of Context:
389
389
      switch (*from)
390
390
      {
391
391
         case 0:
 
392
           output.append("\\0");
 
393
           break;
392
394
         case '\n':
 
395
           output.append("\\n");
 
396
           break;
393
397
         case '\r':
 
398
           output.append("\\r");
 
399
           break;
394
400
         case '\\':
 
401
           output.append("\\\\");
 
402
           break;
395
403
         case '\'':
 
404
           output.append("\\'");
 
405
           break;
396
406
         case '"':
 
407
           output.append("\\\"");
 
408
           break;
397
409
         case '\032':
398
 
           output.push_back('\\');
 
410
           output.append("\\Z");
 
411
           break;
399
412
         default:
 
413
           output.push_back(*from);
400
414
           break;
401
415
       }
402
416
    }
403
 
    output.push_back(*from);
 
417
    else
 
418
      output.push_back(*from);
404
419
    (void) *from++;
405
420
    from_size--;
406
421
  }