~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/insert_value.cc

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
#include "config.h"
21
 
#include CSTDINT_H
22
21
#include <drizzled/error.h>
23
22
#include <drizzled/name_resolution_context.h>
24
23
#include <drizzled/table.h>
28
27
#include <drizzled/item/default_value.h>
29
28
#include <drizzled/field/null.h>
30
29
 
 
30
using namespace drizzled;
31
31
 
32
32
bool Item_insert_value::eq(const Item *item, bool binary_cmp) const
33
33
{
70
70
 
71
71
  if (field_arg->field->table->insert_values)
72
72
  {
73
 
    Field *def_field= (Field*) sql_alloc(field_arg->field->size_of());
 
73
    Field *def_field= (Field*) memory::sql_alloc(field_arg->field->size_of());
74
74
    if (!def_field)
75
75
      return true;
76
76
    memcpy(def_field, field_arg->field, field_arg->field->size_of());