diff options
author | unknown <ramil@mysql.com> | 2006-05-02 18:00:44 +0500 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2006-05-02 18:00:44 +0500 |
commit | 7dbe688063512f77dfc7da540162290783ac4445 (patch) | |
tree | c3591641668aa04d2b41738ae65c6deec419c395 /sql/item_timefunc.h | |
parent | 2740b2b3a43cfce5ee96d1a622109ff8077b6f2b (diff) | |
download | mariadb-git-7dbe688063512f77dfc7da540162290783ac4445.tar.gz |
Fix for bug #16546: DATETIME+0 not always coerced the same way
mysql-test/r/func_time.result:
Fix for bug #16546: DATETIME+0 not always coerced the same way
- test case
mysql-test/t/func_time.test:
Fix for bug #16546: DATETIME+0 not always coerced the same way
- test case
sql/item_timefunc.cc:
Fix for bug #16546: DATETIME+0 not always coerced the same way
- set decimals to DATETIME_DEC
sql/item_timefunc.h:
Fix for bug #16546: DATETIME+0 not always coerced the same way
- set decimals to DATETIME_DEC
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r-- | sql/item_timefunc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h index 163b1591e52..ac26455371d 100644 --- a/sql/item_timefunc.h +++ b/sql/item_timefunc.h @@ -580,6 +580,7 @@ public: { collation.set(&my_charset_bin); maybe_null=1; + decimals= DATETIME_DEC; max_length=MAX_TIME_WIDTH*MY_CHARSET_BIN_MB_MAXLEN; } enum_field_types field_type() const { return MYSQL_TYPE_TIME; } |