~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/param.cc

  • Committer: Monty Taylor
  • Date: 2009-02-08 11:28:58 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mordred@inaugust.com-20090208112858-aouo9w2okht5r6x0
ZOMG. Renamed all the rest of the stuff in libdrizzleclient to be drizzleclient_*. I love commandline perl.

Show diffs side-by-side

added added

removed removed

Lines of Context:
545
545
*/
546
546
 
547
547
uint32_t
548
 
drizzle_escape_string(char *to,const char *from, uint32_t length)
 
548
drizzleclient_escape_string(char *to,const char *from, uint32_t length)
549
549
{
550
550
  const char *to_start= to;
551
551
  const char *end, *to_end=to_start + 2*length;
636
636
  else
637
637
  {
638
638
    *ptr++= '\'';
639
 
    ptr+= drizzle_escape_string(ptr, from->ptr(), from->length());
 
639
    ptr+= drizzleclient_escape_string(ptr, from->ptr(), from->length());
640
640
    *ptr++='\'';
641
641
  }
642
642
  to->length(orig_len + ptr - beg);