~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

Cleaned up int/date related store functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
274
274
    /* The query failed, send error to log and abort bootstrap. */
275
275
    session->protocol->sendError(session->main_da.sql_errno(),
276
276
                                 session->main_da.message());
277
 
#if 0
278
 
    session->protocol->sendError();
279
 
#endif
280
277
    break;
281
278
 
282
279
  case Diagnostics_area::DA_EOF:
283
280
    session->protocol->sendEOF();
284
 
#if 0
285
 
    session->protocol->sendEOF(session->main_da.server_status(),
286
 
                               session->main_da.total_warn_count());
287
 
#endif
288
281
    break;
289
282
 
290
283
  case Diagnostics_area::DA_OK:
291
284
    session->protocol->sendOK();
292
 
#if 0
293
 
    session->protocol->sendOK(session->main_da.server_status(),
294
 
                              session->main_da.total_warn_count(),
295
 
                              session->main_da.affected_rows(),
296
 
                              session->main_da.last_insert_id(),
297
 
                              session->main_da.message());
298
 
#endif
299
285
    break;
300
286
 
301
287
  case Diagnostics_area::DA_DISABLED:
303
289
 
304
290
  case Diagnostics_area::DA_EMPTY:
305
291
  default:
306
 
    //TODO: Something is being masked here by commenting this out
307
 
    //  assert(0);
308
292
    session->protocol->sendOK();
309
 
#if 0
310
 
    session->protocol->sendOK(session->server_status, session->total_warn_count,
311
 
                              0, 0, NULL);
312
 
#endif
313
293
    break;
314
294
  }
315
295