~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.cc

  • Committer: Brian Aker
  • Date: 2008-11-04 15:39:09 UTC
  • mfrom: (575.1.2 devel)
  • Revision ID: brian@tangent.org-20081104153909-c72hn65udxs1ccal
Merge of Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
842
842
*/
843
843
unsigned char *
844
844
Field::pack(unsigned char *to, const unsigned char *from, uint32_t max_length,
845
 
            bool low_byte_first __attribute__((unused)))
 
845
            bool)
846
846
{
847
847
  uint32_t length= pack_length();
848
848
  set_if_smaller(length, max_length);
882
882
*/
883
883
const unsigned char *
884
884
Field::unpack(unsigned char* to, const unsigned char *from, uint32_t param_data,
885
 
              bool low_byte_first __attribute__((unused)))
 
885
              bool)
886
886
{
887
887
  uint32_t length=pack_length();
888
888
  int from_type= 0;
912
912
}
913
913
 
914
914
 
915
 
my_decimal *Field::val_decimal(my_decimal *decimal __attribute__((unused)))
 
915
my_decimal *Field::val_decimal(my_decimal *)
916
916
{
917
917
  /* This never have to be called */
918
918
  assert(0);
959
959
  @return
960
960
    value converted from val
961
961
*/
962
 
int64_t Field::convert_decimal2int64_t(const my_decimal *val,
963
 
                                         bool unsigned_flag __attribute__((unused)), int *err)
 
962
int64_t Field::convert_decimal2int64_t(const my_decimal *val, bool, int *err)
964
963
{
965
964
  int64_t i;
966
965
  if (warn_if_overflow(my_decimal2int(E_DEC_ERROR &
1023
1022
    Needs to be changed if/when we want to support different time formats.
1024
1023
*/
1025
1024
 
1026
 
int Field::store_time(DRIZZLE_TIME *ltime,
1027
 
                      enum enum_drizzle_timestamp_type type_arg __attribute__((unused)))
 
1025
int Field::store_time(DRIZZLE_TIME *ltime, enum enum_drizzle_timestamp_type)
1028
1026
{
1029
1027
  char buff[MAX_DATE_STRING_REP_LENGTH];
1030
1028
  uint32_t length= (uint32_t) my_TIME_to_str(ltime, buff);
1038
1036
}
1039
1037
 
1040
1038
 
1041
 
Field *Field::new_field(MEM_ROOT *root, Table *new_table,
1042
 
                        bool keep_type __attribute__((unused)))
 
1039
Field *Field::new_field(MEM_ROOT *root, Table *new_table, bool)
1043
1040
{
1044
1041
  Field *tmp;
1045
1042
  if (!(tmp= (Field*) memdup_root(root,(char*) this,size_of())))
1298
1295
    true  on error
1299
1296
*/
1300
1297
 
1301
 
bool Create_field::init(Session *session __attribute__((unused)), char *fld_name, enum_field_types fld_type,
 
1298
bool Create_field::init(Session *, char *fld_name, enum_field_types fld_type,
1302
1299
                        char *fld_length, char *fld_decimals,
1303
1300
                        uint32_t fld_type_modifier, Item *fld_default_value,
1304
1301
                        Item *fld_on_update_value, LEX_STRING *fld_comment,
1305
1302
                        char *fld_change, List<String> *fld_interval_list,
1306
1303
                        const CHARSET_INFO * const fld_charset,
1307
 
                        uint32_t fld_geom_type __attribute__((unused)),
1308
 
                        enum column_format_type column_format,
 
1304
                        uint32_t, enum column_format_type column_format,
1309
1305
                        virtual_column_info *fld_vcol_info)
1310
1306
{
1311
1307
  uint32_t sign_len, allowed_type_modifier= 0;
1567
1563
}
1568
1564
 
1569
1565
 
1570
 
enum_field_types get_blob_type_from_length(uint32_t length __attribute__((unused)))
 
1566
enum_field_types get_blob_type_from_length(uint32_t)
1571
1567
{
1572
1568
  enum_field_types type;
1573
1569