~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump.cc

  • Committer: Monty Taylor
  • Date: 2008-09-14 00:14:42 UTC
  • mto: This revision was merged to the branch mainline in revision 387.
  • Revision ID: monty@inaugust.com-20080914001442-09k3yuht4gopk0t6
Reworked drizzle_escape_string.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1112
1112
  if (!(tmp=(char*) my_malloc(length*2+1, MYF(MY_WME))))
1113
1113
    die(EX_DRIZZLEERR, "Couldn't allocate memory");
1114
1114
 
1115
 
  drizzle_real_escape_string(&drizzle_connection, tmp, pos, length);
 
1115
  drizzle_escape_string(tmp, pos, length);
1116
1116
  fputc('\'', file);
1117
1117
  fputs(tmp, file);
1118
1118
  fputc('\'', file);
2278
2278
                else
2279
2279
                {
2280
2280
                  extended_row.append("'");
2281
 
                  drizzle_real_escape_string(&drizzle_connection,
2282
 
                                             tmp_str,
2283
 
                                             row[i],length);
 
2281
                  drizzle_escape_string(tmp_str,
 
2282
                                        row[i],length);
2284
2283
                  extended_row.append(tmp_str);
2285
2284
                  extended_row.append("'");
2286
2285
                }