~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-15 14:04:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2408.
  • Revision ID: olafvdspek@gmail.com-20110815140454-wh129kxb1fj2eiy8
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
  session->times.set_time();
202
202
  session->setQueryId(query_id.value());
203
203
 
204
 
  switch (command)
 
204
  if (command != COM_PING)
205
205
  {
206
 
  /* Ignore these statements. */
207
 
  case COM_PING:
208
 
    break;
209
 
 
210
 
  /* Increase id and count all other statements. */
211
 
  default:
 
206
    // Increase id and count all other statements
212
207
    session->status_var.questions++;
213
208
    query_id.next();
214
209
  }
221
216
    // We should do something about an error...
222
217
  }
223
218
 
224
 
  session->server_status&=
225
 
           ~(SERVER_QUERY_NO_INDEX_USED | SERVER_QUERY_NO_GOOD_INDEX_USED);
 
219
  session->server_status&= ~(SERVER_QUERY_NO_INDEX_USED | SERVER_QUERY_NO_GOOD_INDEX_USED);
226
220
 
227
221
  switch (command)
228
222
  {