Fixed problem in microseconds conversion (really this time.)

This commit is contained in:
Federico Di Gregorio 2005-11-20 05:01:13 +00:00
parent 03c0a258a2
commit a6be5bf7bc
2 changed files with 6 additions and 2 deletions

5
NEWS
View File

@ -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 What's new in psycopg 2.0 beta 6
-------------------------------- --------------------------------

View File

@ -140,8 +140,7 @@ typecast_parse_time(char* s, char** t, int* len,
*tz = tzs * tzhh*60 + tzmm; *tz = tzs * tzhh*60 + tzmm;
if (*us != 0.0) { if (*us != 0.0) {
while (usd < 6) while (usd++ < 6) *us *= 10.0;
*us *= (*us)*10.0;
} }
return cz; return cz;