summaryrefslogtreecommitdiff
path: root/sql/field.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2002-10-30 17:09:37 +0400
committerunknown <bar@bar.mysql.r18.ru>2002-10-30 17:09:37 +0400
commitfdff4a99836b54c5ec17683d1d38f981f87c03c2 (patch)
treed42496394ec3c44e78f9d404c7911e6c52454a29 /sql/field.cc
parent85f35cbf574eac4bbc0f5dda0416da33da086cd0 (diff)
downloadmariadb-git-fdff4a99836b54c5ec17683d1d38f981f87c03c2.tar.gz
date and time fields now have charset arg in constructor
my_charset_latin1 include/m_ctype.h: my_charset_latin1 is now visible all around the program sql/field.cc: date and time fields now have charset arg in constructor sql/field.h: date and time fields now have charset arg in constructor sql/item_timefunc.h: date and time fields now have charset arg in constructor strings/ctype.c: my_charset_latin1 is now visible all around the program
Diffstat (limited to 'sql/field.cc')
-rw-r--r--sql/field.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/field.cc b/sql/field.cc
index 374b62f5191..d8742d487f9 100644
--- a/sql/field.cc
+++ b/sql/field.cc
@@ -5283,19 +5283,19 @@ Field *make_field(char *ptr, uint32 field_length,
unireg_check, field_name, table);
case FIELD_TYPE_DATE:
return new Field_date(ptr,null_pos,null_bit,
- unireg_check, field_name, table);
+ unireg_check, field_name, table, field_charset);
case FIELD_TYPE_NEWDATE:
return new Field_newdate(ptr,null_pos,null_bit,
- unireg_check, field_name, table);
+ unireg_check, field_name, table, field_charset);
case FIELD_TYPE_TIME:
return new Field_time(ptr,null_pos,null_bit,
- unireg_check, field_name, table);
+ unireg_check, field_name, table, field_charset);
case FIELD_TYPE_DATETIME:
return new Field_datetime(ptr,null_pos,null_bit,
- unireg_check, field_name, table);
+ unireg_check, field_name, table, field_charset);
case FIELD_TYPE_NULL:
default: // Impossible (Wrong version)
- return new Field_null(ptr,field_length,unireg_check,field_name,table);
+ return new Field_null(ptr,field_length,unireg_check,field_name,table, field_charset);
}
return 0; // Impossible (Wrong version)
}