~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_delete.cc

  • Committer: Lee Bieber
  • Date: 2011-03-16 18:11:33 UTC
  • mfrom: (2239.2.2 build)
  • Revision ID: kalebral@gmail.com-20110316181133-zr1uj612rz7s32s0
Merge Patrick - Added some randgen test cases
Merge Olaf - refactor includes

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <drizzled/transaction_services.h>
33
33
#include <drizzled/filesort.h>
34
34
#include <drizzled/sql_lex.h>
 
35
#include <drizzled/diagnostics_area.h>
35
36
 
36
 
namespace drizzled
37
 
{
 
37
namespace drizzled {
38
38
 
39
39
/**
40
40
  Implement DELETE SQL word.
181
181
     * Resetting the Diagnostic area to prevent
182
182
     * lp bug# 439719
183
183
     */
184
 
    session->main_da.reset_diagnostics_area();
 
184
    session->main_da().reset_diagnostics_area();
185
185
    session->my_ok((ha_rows) session->rowCount());
186
186
    /*
187
187
      We don't need to call reset_auto_increment in this case, because
347
347
     * Resetting the Diagnostic area to prevent
348
348
     * lp bug# 439719
349
349
     */
350
 
    session->main_da.reset_diagnostics_area();
 
350
    session->main_da().reset_diagnostics_area();
351
351
    session->my_ok((ha_rows) session->rowCount());
352
352
  }
353
353
  session->status_var.deleted_row_count+= deleted;