diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-03-23 13:31:06 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-03-23 13:31:06 +0100 |
commit | 8d2738367efc79a0adf5dfbb159de3d2ec84d6f1 (patch) | |
tree | c0e687800f86f17fd66411fe8e3541816d33dd62 /sql/item_timefunc.h | |
parent | e2d71ef3e661b1d3f8225c8ed289fe198d84b21f (diff) | |
download | mariadb-git-8d2738367efc79a0adf5dfbb159de3d2ec84d6f1.tar.gz |
lp:740173 5.1-micro reports incorrect Length metadata for TIME expressions
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r-- | sql/item_timefunc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h index df4491e61e6..68fd34aa29e 100644 --- a/sql/item_timefunc.h +++ b/sql/item_timefunc.h @@ -698,7 +698,7 @@ public: { collation.set(&my_charset_bin); maybe_null= 1; - max_length= MAX_TIME_WIDTH; + max_length= MIN_TIME_WIDTH; if (decimals == NOT_FIXED_DEC) decimals= args[0]->decimals; if (decimals && decimals != NOT_FIXED_DEC) |