~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.cc

  • Committer: Brian Aker
  • Date: 2009-02-18 19:27:32 UTC
  • mfrom: (873.1.17 temporal-new)
  • Revision ID: brian@tangent.org-20090218192732-ype4iscybtftjk2y
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
  Handler-calling-functions
24
24
*/
25
25
 
26
 
#include <drizzled/server_includes.h>
27
 
#include <libdrizzleclient/libdrizzle.h>
28
 
#include <mysys/hash.h>
29
 
#include <drizzled/error.h>
30
 
#include <drizzled/gettext.h>
31
 
#include <drizzled/data_home.h>
32
 
#include <drizzled/probes.h>
33
 
#include <drizzled/sql_parse.h>
34
 
#include <drizzled/cost_vect.h>
 
26
#include "drizzled/server_includes.h"
 
27
#include "libdrizzleclient/libdrizzle.h"
 
28
#include "mysys/hash.h"
 
29
#include "drizzled/error.h"
 
30
#include "drizzled/gettext.h"
 
31
#include "drizzled/data_home.h"
 
32
#include "drizzled/probes.h"
 
33
#include "drizzled/sql_parse.h"
 
34
#include "drizzled/cost_vect.h"
35
35
#include CMATH_H
36
 
#include <drizzled/session.h>
37
 
#include <drizzled/sql_base.h>
38
 
#include <drizzled/replicator.h>
39
 
#include <drizzled/lock.h>
40
 
#include <drizzled/item/int.h>
41
 
#include <drizzled/item/empty_string.h>
42
 
#include <drizzled/unireg.h> // for mysql_frm_type
43
 
#include <drizzled/serialize/table.pb.h>
 
36
#include "drizzled/session.h"
 
37
#include "drizzled/sql_base.h"
 
38
#include "drizzled/replicator.h"
 
39
#include "drizzled/lock.h"
 
40
#include "drizzled/item/int.h"
 
41
#include "drizzled/item/empty_string.h"
 
42
#include "drizzled/unireg.h" // for mysql_frm_type
 
43
#include "drizzled/field/timestamp.h"
 
44
#include "drizzled/serialize/table.pb.h"
44
45
 
45
46
#if defined(CMATH_NAMESPACE)
46
47
using namespace CMATH_NAMESPACE;
4279
4280
  int error;
4280
4281
  DRIZZLE_INSERT_ROW_START();
4281
4282
 
 
4283
  /* 
 
4284
   * If we have a timestamp column, update it to the current time 
 
4285
   * 
 
4286
   * @TODO Technically, the below two lines can be take even further out of the
 
4287
   * handler interface and into the fill_record() method.
 
4288
   */
 
4289
  if (table->timestamp_field_type & TIMESTAMP_AUTO_SET_ON_INSERT)
 
4290
    table->timestamp_field->set_time();
 
4291
 
4282
4292
  mark_trx_read_write();
4283
4293
 
4284
4294
  if (unlikely(error= write_row(buf)))