~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item.cc

  • Committer: Brian Aker
  • Date: 2010-02-09 21:18:30 UTC
  • mfrom: (1273.2.42)
  • Revision ID: brian@gaz-20100209211830-7vf91n0yasi0r28y
Merge Stewart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
693
693
  return test(is_expensive_cache);
694
694
}
695
695
 
696
 
int Item::save_in_field_no_warnings(Field *field, bool no_conversions)
697
 
{
698
 
  int res;
699
 
  Table *table= field->table;
700
 
  Session *session= table->in_use;
701
 
  enum_check_fields tmp= session->count_cuted_fields;
702
 
  ulong sql_mode= session->variables.sql_mode;
703
 
  session->variables.sql_mode&= ~(MODE_NO_ZERO_DATE);
704
 
  session->count_cuted_fields= CHECK_FIELD_IGNORE;
705
 
  res= save_in_field(field, no_conversions);
706
 
  session->count_cuted_fields= tmp;
707
 
  session->variables.sql_mode= sql_mode;
708
 
  return res;
709
 
}
710
 
 
711
696
/*
712
697
 need a special class to adjust printing : references to aggregate functions
713
698
 must not be printed as refs because the aggregate functions that are added to
1679
1664
Field *create_tmp_field(Session *session,
1680
1665
                        Table *table,
1681
1666
                        Item *item,
1682
 
                        Item::Type type, 
1683
 
                        Item ***copy_func, 
 
1667
                        Item::Type type,
 
1668
                        Item ***copy_func,
1684
1669
                        Field **from_field,
1685
 
                        Field **default_field, 
1686
 
                        bool group, 
 
1670
                        Field **default_field,
 
1671
                        bool group,
1687
1672
                        bool modify_item,
1688
 
                        bool, 
1689
1673
                        bool make_copy_field,
1690
1674
                        uint32_t convert_blob_length)
1691
1675
{