#At file:///home/bar/mysql-bzr/mysql-trunk-wl946/ based on revid:alexander.barkov@stripped
3365 Alexander Barkov 2011-05-13
WL#946 Fixing --ps test failures
modified:
libmysql/libmysql.c
=== modified file 'libmysql/libmysql.c'
--- a/libmysql/libmysql.c 2011-05-12 20:55:23 +0000
+++ b/libmysql/libmysql.c 2011-05-12 22:33:11 +0000
@@ -3469,7 +3469,7 @@ static void fetch_datetime_with_conversi
fetch_string_with_conversion:
*/
char buff[MAX_DATE_STRING_REP_LENGTH];
- uint length= my_TIME_to_str(my_time, buff, 0); // TODO?
+ uint length= my_TIME_to_str(my_time, buff, field->decimals);
/* Resort to string conversion */
fetch_string_with_conversion(param, (char *)buff, length);
break;
@@ -3946,7 +3946,7 @@ static my_bool setup_one_fetch_function(
field->max_length= MAX_DOUBLE_STRING_REP_LENGTH;
break;
case MYSQL_TYPE_TIME:
- field->max_length= 15; /* 19:23:48.123456 */
+ field->max_length= 17; /* -819:23:48.123456 */
param->skip_result= skip_result_with_length;
break;
case MYSQL_TYPE_DATE:
Attachment: [text/bzr-bundle] bzr/alexander.barkov@oracle.com-20110512223311-c8fn5w0lu87hd71a.bundle
| Thread |
|---|
| • bzr commit into mysql-trunk branch (alexander.barkov:3365) WL#946 | Alexander Barkov | 13 May |