diff --git a/ChangeLog b/ChangeLog index 2af437b1..d260dbc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-12-11 Federico Di Gregorio + + * psycopg/typecast.c (typecast_parse_time): cz limit in the while + loop is 6, not 5. This solve the problem with "fractionary" time zones + and fixes #78. + 2005-12-06 Federico Di Gregorio * lib/extras.py: added .callproc() to DictCursor as suggested diff --git a/LICENSE b/LICENSE index 381fdd96..b20b2825 100644 --- a/LICENSE +++ b/LICENSE @@ -53,7 +53,7 @@ GNU General Public License for more details. Proprietary licenses ==================== -A non-discriminatory license is available for companies that want to include +A non-exclusive license is available for companies that want to include psycopg in their proprietary products without respecting the spirit of the GPL. The price of the license is one day of development done by the author, at the consulting fee he applies to his usual customers at the day of the diff --git a/README b/README index a1d5ce04..79cba720 100644 --- a/README +++ b/README @@ -21,25 +21,5 @@ compile on all architectures just as its predecessor did. Now go read the INSTALL file. More information about psycopg extensions to the DBAPI-2.0 is available in the files located in the doc/ direcory. - -Licence -------- - -psycopg is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. See file COPYING for details. - -As a special exception, specific permission is granted for the GPLed code in -this distribition to be linked to OpenSSL and PostgreSQL libpq without -invoking GPL clause 2(b). - -If you prefer you can use the Zope Database Adapter ZPsycopgDA (i.e., every -file inside the ZPsycopgDA directory) under the ZPL license as published on -the Zope web site, http://www.zope.org/Resources/ZPL. The ZPL is perfectly -compatible with the GPL - -psycopg is distributed in the hope that it will be useful, but WITHOUT ANY -WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -details. +psycopg is free software ("free as in freedom" but I like beer too.) +Licensing information is available in the LICENSE file. diff --git a/psycopg/typecast.c b/psycopg/typecast.c index 17885639..ef91bfde 100644 --- a/psycopg/typecast.c +++ b/psycopg/typecast.c @@ -95,7 +95,7 @@ typecast_parse_time(char* s, char** t, int* len, Dprintf("typecast_parse_time: len = %d, s = %s", *len, s); - while (cz < 5 && *len > 0 && *s) { + while (cz < 6 && *len > 0 && *s) { switch (*s) { case ':': if (cz == 0) *hh = acc; diff --git a/setup.cfg b/setup.cfg index 3c9b15bf..0640674f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [build_ext] -define=PSYCOPG_EXTENSIONS,PSYCOPG_DISPLAY_SIZE,HAVE_PQFREEMEM,HAVE_PQPROTOCOL3 +define=PSYCOPG_DEBUG,PSYCOPG_EXTENSIONS,PSYCOPG_DISPLAY_SIZE,HAVE_PQFREEMEM,HAVE_PQPROTOCOL3 # PSYCOPG_EXTENSIONS enables extensions to PEP-249 (you really want this) # PSYCOPG_DISPLAY_SIZE enable display size calculation (a little slower) # HAVE_PQFREEMEM should be defined on PostgreSQL >= 7.3