Daniele Varrazzo
5e3f240ac9
Cast datetime into timestamptz when the tzinfo field is set.
2010-05-15 14:27:23 +01:00
Daniele Varrazzo
bf1c76b792
Explicit cast of the SQL representation of time-related objects.
...
Allow the objects to be recognized as the proper type by Postgres in not
strong contexts: problem reported by Peter Eisentraut.
Added tests to check the types are respected in a complete Py -> PG ->
Py roundtrip without context.
2010-05-15 14:27:23 +01:00
Federico Di Gregorio
611606d532
Changes license to LGPL3 + OpenSSL exception on all source files
2010-02-12 23:34:53 +01:00
James Henstridge
2273b79be9
Use Py_CLEAR() in a few more places, and do INCREF's before setting
...
struct members rather than afterwards.
2008-07-21 13:41:54 +08:00
James Henstridge
e0287c0db4
* psycopg/adapter_qstring.c (qstring_traverse): add cyclic GC
...
traversal for quoted string adapters.
* psycopg/adapter_pboolean.c (pboolean_traverse): add cyclic GC
traversal for boolean adapters.
* psycopg/adapter_mxdatetime.c (mxdatetime_traverse): add cyclic
GC traversal for mxdatetime adapters.
* psycopg/adapter_datetime.c (pydatetime_traverse): add cyclic GC
traversal for datetime adapters.
2008-07-18 17:42:31 +08:00
Federico Di Gregorio
f3438f2961
Preparing release 2.0.7.
2008-04-14 04:27:22 +00:00
Federico Di Gregorio
8103f44a12
Fixed test segfault due to double decref.
2008-03-17 08:13:16 +00:00
James Henstridge
6c2e3ab49b
* Add HIDDEN attribute to datetime related global variables.
...
* Make const strings static, which essentially makes them labels for the
strings.
2008-01-22 00:13:42 +00:00
James Henstridge
f18881983b
* psycopg/typecast_array.c (typecast_array_scan): set an initial
...
value for quotes to keep gcc happy.
* psycopg/*.c: add missing static modifier on many functions.
2008-01-13 16:05:59 +00:00
Federico Di Gregorio
07892b29a6
Aggressive threading on fetch (and a new bug!)
2007-09-19 13:39:48 +00:00
Federico Di Gregorio
e5829292cd
Fixed both Python 2.5 and 64 bit problems.
2007-04-10 06:36:18 +00:00
Federico Di Gregorio
4820213b7f
Fixed fractionary seconds >59 problem ( closes : #131 )
2006-09-30 06:35:12 +00:00
Federico Di Gregorio
168d9c36af
Fractionary seconds fix ( closes : #130 )
2006-09-30 06:16:24 +00:00
Federico Di Gregorio
b9f7c24a63
Interval conversion fix.
2006-07-26 05:13:08 +00:00
Federico Di Gregorio
6b0b634bae
Code cleanup.
2005-10-18 01:29:47 +00:00
Federico Di Gregorio
a237209a5e
Default tzinfo_factory for cursors.
2005-10-17 16:04:43 +00:00
Federico Di Gregorio
206aa79225
Working on TZ issues.
2005-10-17 15:01:14 +00:00
Federico Di Gregorio
b17acddcf5
1900 years shift fix.
2005-07-21 08:36:55 +00:00
Federico Di Gregorio
7ead773fc0
TimestampFromTicks fix.
2005-06-02 06:56:21 +00:00
Federico Di Gregorio
4805a93569
mingw patch from Daniele Varazzo.
2005-04-10 03:05:39 +00:00
Federico Di Gregorio
c787de5aad
Added __conform__ to all adapters (typos excluded.)
2005-03-03 06:39:18 +00:00
Federico Di Gregorio
515d66cc9f
Added __conform__ to all adapters.
2005-03-03 06:31:03 +00:00
Federico Di Gregorio
cd672525e1
Adaptation fixes (a lot.)
2005-02-28 15:50:55 +00:00
Federico Di Gregorio
06ef93271a
Renaming types.
2004-12-13 14:29:42 +00:00
Federico Di Gregorio
c904d97f69
Initial psycopg 2 import after SVN crash.
2004-10-19 03:17:12 +00:00