~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/log_event.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:
31
31
#include <mysys/my_bitmap.h>
32
32
 
33
33
#include <libdrizzle/gettext.h>
 
34
#include <libdrizzle/drizzle.h>
34
35
 
35
36
#define log_cs  &my_charset_utf8_general_ci
36
37
 
459
460
  else
460
461
  {
461
462
    *ptr++= '\'';
462
 
    ptr+= escape_string_for_drizzle(csinfo, ptr, 0,
463
 
                                    from->ptr(), from->length());
 
463
    ptr+= drizzle_escape_string(ptr, from->ptr(), from->length());
464
464
    *ptr++='\'';
465
465
  }
466
466
  to->length(orig_len + ptr - beg);