diff options
author | unknown <konstantin@mysql.com> | 2004-10-27 23:46:22 +0400 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2004-10-27 23:46:22 +0400 |
commit | 447fef48fdb3bb96ad51394d24708a68f56cda9f (patch) | |
tree | fcb5060d1e0aaee633ead3e6796369ac3fef7e0d /sql-common/my_time.c | |
parent | 8ace53109ecc69efc166816b01470ed7333bd862 (diff) | |
download | mariadb-git-447fef48fdb3bb96ad51394d24708a68f56cda9f.tar.gz |
A fix and test case for Bug#6096 "field.max_length is always zero for
numeric columns (stmt_resultset_metadata)"
libmysql/libmysql.c:
A fix for Bug#6096 "field.max_length is always zero for numeric columns
(stmt_resultset_metadata)": set field->max_lenght for numeric
columns when we set up skip_result functions. A minor drawback for this
approach is that field->max_length can be not zero even if
STMT_ATTR_UPDATE_MAX_LENGTH is not set.
sql-common/my_time.c:
Fix valgrind warning.
tests/client_test.c:
A test case for Bug#6096 "field.max_length is always zero for numeric
columns (stmt_resultset_metadata)
Diffstat (limited to 'sql-common/my_time.c')
-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, |