diff options
author | konstantin@mysql.com <> | 2004-10-27 23:46:22 +0400 |
---|---|---|
committer | konstantin@mysql.com <> | 2004-10-27 23:46:22 +0400 |
commit | f96d99eba18199b3aec4eb1a384dae09041e9dea (patch) | |
tree | fcb5060d1e0aaee633ead3e6796369ac3fef7e0d /sql-common | |
parent | 5b29f59aa8fe3f66d0f884f0e567891d5d75d7bd (diff) | |
download | mariadb-git-f96d99eba18199b3aec4eb1a384dae09041e9dea.tar.gz |
A fix and test case for Bug#6096 "field.max_length is always zero for
numeric columns (stmt_resultset_metadata)"
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/my_time.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sql-common/my_time.c b/sql-common/my_time.c index be349285b88..6c020466e1e 100644 --- a/sql-common/my_time.c +++ b/sql-common/my_time.c @@ -743,9 +743,6 @@ void set_zero_time(MYSQL_TIME *tm) int my_time_to_str(const MYSQL_TIME *l_time, char *to) { uint extra_hours= 0; - /* Get extra hours, if we are getting data from the server */ - if (l_time->year == 0 && l_time->month == 0) - extra_hours= l_time->day*24; return my_sprintf(to, (to, "%s%02d:%02d:%02d", (l_time->neg ? "-" : ""), extra_hours+ l_time->hour, |