~psycopg/psycopg/2.0.x

« back to all changes in this revision

Viewing changes to psycopg/typecast.c

  • Committer: Federico Di Gregorio
  • Date: 2005-12-11 07:50:27 UTC
  • Revision ID: fog-933b3ba9d0054bffd82dcb4c86e5e9e2d95f9418
Fixed problem with "fractionary" time zones (Closes: #78).

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
    
96
96
    Dprintf("typecast_parse_time: len = %d, s = %s", *len, s);
97
97
     
98
 
    while (cz < 5 && *len > 0 && *s) {
 
98
    while (cz < 6 && *len > 0 && *s) {
99
99
        switch (*s) {
100
100
        case ':':
101
101
            if (cz == 0) *hh = acc;