From a6be5bf7bc47357dc5ee52603356ab890f798b65 Mon Sep 17 00:00:00 2001 From: Federico Di Gregorio Date: Sun, 20 Nov 2005 05:01:13 +0000 Subject: [PATCH] Fixed problem in microseconds conversion (really this time.) --- NEWS | 5 +++++ psycopg/typecast.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 41907c1b..7182b6f1 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +What's new in psycopg 2.0 beta 7 +-------------------------------- + +* Ironed out last problems with times and date (should be quite solid now.) + What's new in psycopg 2.0 beta 6 -------------------------------- diff --git a/psycopg/typecast.c b/psycopg/typecast.c index f351bfa5..d0a3d8a8 100644 --- a/psycopg/typecast.c +++ b/psycopg/typecast.c @@ -140,8 +140,7 @@ typecast_parse_time(char* s, char** t, int* len, *tz = tzs * tzhh*60 + tzmm; if (*us != 0.0) { - while (usd < 6) - *us *= (*us)*10.0; + while (usd++ < 6) *us *= 10.0; } return cz;