23
23
Handler-calling-functions
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"
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"
45
46
#if defined(CMATH_NAMESPACE)
46
47
using namespace CMATH_NAMESPACE;
4280
4281
DRIZZLE_INSERT_ROW_START();
4284
* If we have a timestamp column, update it to the current time
4286
* @TODO Technically, the below two lines can be take even further out of the
4287
* handler interface and into the fill_record() method.
4289
if (table->timestamp_field_type & TIMESTAMP_AUTO_SET_ON_INSERT)
4290
table->timestamp_field->set_time();
4282
4292
mark_trx_read_write();
4284
4294
if (unlikely(error= write_row(buf)))