~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2008-09-04 18:16:51 UTC
  • Revision ID: brian@tangent.org-20080904181651-kydoxckk145z99b8
strend remove

Show diffs side-by-side

added added

removed removed

Lines of Context:
564
564
    status_var_increment(thd->status_var.com_other);
565
565
    char *user= (char*) packet, *packet_end= packet + packet_length;
566
566
    /* Safe because there is always a trailing \0 at the end of the packet */
567
 
    char *passwd= strend(user)+1;
 
567
    char *passwd= strchr(user, '\0')+1;
568
568
 
569
569
 
570
570
    thd->clear_error();                         // if errors from rollback
729
729
    /*
730
730
      We have name + wildcard in packet, separated by endzero
731
731
    */
732
 
    arg_end= strend(packet);
 
732
    arg_end= strchr(packet, '\0');
733
733
    thd->convert_string(&conv_name, system_charset_info,
734
734
                        packet, (uint) (arg_end - packet), thd->charset());
735
735
    table_list.alias= table_list.table_name= conv_name.str;