diff options
author | Federico Di Gregorio <fog@initd.org> | 2005-11-20 05:01:13 +0000 |
---|---|---|
committer | Federico Di Gregorio <fog@initd.org> | 2005-11-20 05:01:13 +0000 |
commit | a6be5bf7bc47357dc5ee52603356ab890f798b65 (patch) | |
tree | 37a44f3087ba5df6631345994b14356f3b5e4562 | |
parent | 03c0a258a208badea56164517f37df44a6e24fc6 (diff) | |
download | psycopg2-a6be5bf7bc47357dc5ee52603356ab890f798b65.tar.gz |
Fixed problem in microseconds conversion (really this time.)
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | psycopg/typecast.c | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -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 f351bfa..d0a3d8a 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; |