~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Stewart Smith
  • Date: 2009-02-16 04:19:00 UTC
  • mfrom: (869.2.6 dollhouse)
  • mto: This revision was merged to the branch mainline in revision 887.
  • Revision ID: stewart@flamingspork.com-20090216041900-idx8llj31btz5as3
merge unireg_type removal, mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
607
607
        length--;
608
608
      }
609
609
 
610
 
      pthread_mutex_lock(&LOCK_thread_count);
611
 
      session->query_length= length;
612
 
      session->query= beginning_of_next_stmt;
613
610
      /*
614
611
        Count each statement from the client.
615
612
      */
616
613
      statistic_increment(session->status_var.questions, &LOCK_status);
617
614
      session->query_id= query_id.next();
618
615
      session->set_time(); /* Reset the query start time. */
 
616
      pthread_mutex_lock(&LOCK_thread_count);
 
617
      session->query_length= length;
 
618
      session->query= beginning_of_next_stmt;
 
619
      pthread_mutex_unlock(&LOCK_thread_count);
619
620
      /* TODO: set session->lex->sql_command to SQLCOM_END here */
620
 
      pthread_mutex_unlock(&LOCK_thread_count);
621
621
 
622
622
      mysql_parse(session, beginning_of_next_stmt, length, &end_of_stmt);
623
623
    }