~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-24 09:51:02 UTC
  • mto: This revision was merged to the branch mainline in revision 2447.
  • Revision ID: olafvdspek@gmail.com-20111024095102-jj62tzw3ro28ai9s
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
710
710
void Session::readAndStoreQuery(const char *in_packet, uint32_t in_packet_length)
711
711
{
712
712
  /* Remove garbage at start and end of query */
713
 
  while (in_packet_length > 0 && my_isspace(charset(), in_packet[0]))
 
713
  while (in_packet_length > 0 && charset()->isspace(in_packet[0]))
714
714
  {
715
715
    in_packet++;
716
716
    in_packet_length--;
717
717
  }
718
718
  const char *pos= in_packet + in_packet_length; /* Point at end null */
719
 
  while (in_packet_length > 0 && (pos[-1] == ';' || my_isspace(charset() ,pos[-1])))
 
719
  while (in_packet_length > 0 && (pos[-1] == ';' || charset()->isspace(pos[-1])))
720
720
  {
721
721
    pos--;
722
722
    in_packet_length--;