~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Mark Atwood
  • Date: 2011-08-21 06:56:57 UTC
  • mfrom: (2385.3.34 rf)
  • Revision ID: me@mark.atwood.name-20110821065657-vk2at03z9u17mf1d
mergeĀ lp:~olafvdspek/drizzle/refactor7

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
  {