summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2005-11-20 05:01:13 +0000
committerFederico Di Gregorio <fog@initd.org>2005-11-20 05:01:13 +0000
commita6be5bf7bc47357dc5ee52603356ab890f798b65 (patch)
tree37a44f3087ba5df6631345994b14356f3b5e4562
parent03c0a258a208badea56164517f37df44a6e24fc6 (diff)
downloadpsycopg2-a6be5bf7bc47357dc5ee52603356ab890f798b65.tar.gz
Fixed problem in microseconds conversion (really this time.)
-rw-r--r--NEWS5
-rw-r--r--psycopg/typecast.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 41907c1..7182b6f 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 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;