diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-03-17 11:54:36 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-03-17 11:54:36 +0100 |
commit | a169ede155937cba04b01ea104d7904d89f87007 (patch) | |
tree | 144a72d6706670d2b116acaf257e385b1709c58e /sql/item_timefunc.h | |
parent | 3c6ff364ca31c9b8bc14f5fe583cd60ee5516bfd (diff) | |
download | mariadb-git-a169ede155937cba04b01ea104d7904d89f87007.tar.gz |
lp:736358 Unexpected increased timestamp resolution with UNION
partial fix
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r-- | sql/item_timefunc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h index b28daed202b..df4491e61e6 100644 --- a/sql/item_timefunc.h +++ b/sql/item_timefunc.h @@ -699,6 +699,8 @@ public: collation.set(&my_charset_bin); maybe_null= 1; max_length= MAX_TIME_WIDTH; + if (decimals == NOT_FIXED_DEC) + decimals= args[0]->decimals; if (decimals && decimals != NOT_FIXED_DEC) max_length+= min(decimals, MAX_SEC_PART_DIGITS) + 1; } |