~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_update.cc

  • Committer: Stewart Smith
  • Date: 2011-01-14 05:11:45 UTC
  • mto: (2086.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2087.
  • Revision ID: stewart@flamingspork.com-20110114051145-xiputq4lvmtct377
storage engine docs. add bit about some temp table only engines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
/*
18
18
  Single table and multi table updates of tables.
 
19
  Multi-table updates were introduced by Sinisa & Monty
19
20
*/
20
 
 
21
21
#include "config.h"
22
 
 
23
22
#include "drizzled/sql_select.h"
24
23
#include "drizzled/error.h"
25
24
#include "drizzled/probes.h"
32
31
#include "drizzled/internal/iocache.h"
33
32
#include "drizzled/transaction_services.h"
34
33
#include "drizzled/filesort.h"
35
 
#include "drizzled/plugin/storage_engine.h"
36
34
 
37
35
#include <boost/dynamic_bitset.hpp>
38
36
#include <list>
456
454
  session->set_proc_info("Updating");
457
455
 
458
456
  transactional_table= table->cursor->has_transactions();
459
 
  session->setAbortOnWarning(test(!ignore));
 
457
  session->abort_on_warning= test(!ignore);
460
458
 
461
459
  /*
462
460
    Assure that we can use position()
578
576
     * lp bug# 439719
579
577
     */
580
578
    session->main_da.reset_diagnostics_area();
581
 
    session->my_ok((ulong) session->rowCount(), found, id, buff);
582
 
    session->status_var.updated_row_count+= session->rowCount();
 
579
    session->my_ok((ulong) session->row_count_func, found, id, buff);
 
580
    session->status_var.updated_row_count+= session->row_count_func;
583
581
  }
584
582
  session->count_cuted_fields= CHECK_FIELD_ERROR_FOR_NULL;              /* calc cuted fields */
585
 
  session->setAbortOnWarning(false);
 
583
  session->abort_on_warning= 0;
586
584
  DRIZZLE_UPDATE_DONE((error >= 0 || session->is_error()), found, updated);
587
585
  return ((error >= 0 || session->is_error()) ? 1 : 0);
588
586
 
597
595
    table->key_read=0;
598
596
    table->cursor->extra(HA_EXTRA_NO_KEYREAD);
599
597
  }
600
 
  session->setAbortOnWarning(false);
 
598
  session->abort_on_warning= 0;
601
599
 
602
600
  DRIZZLE_UPDATE_DONE(1, 0, 0);
603
601
  return 1;