Daniele Varrazzo
e182201e6e
Added Python codec name to the connection.
...
This allows dropping repeated dictionary lookups with unicode
query/parameters.
2010-12-21 04:02:14 +00:00
Daniele Varrazzo
4635c2aa4f
Import structmember/stringobject headers from python.h.
...
stringobject is not to be imported with Python 3.
2010-12-21 04:02:13 +00:00
Daniele Varrazzo
9b30147341
Using PyVarObject_HEAD_INIT macro.
2010-12-21 04:02:13 +00:00
Daniele Varrazzo
8dfa9915eb
Using Py_TYPE and Py_REFCNT macros.
2010-12-21 04:02:13 +00:00
Daniele Varrazzo
89f70bdb3c
Changed Python const RO -> READONLY.
2010-12-12 13:39:32 +00:00
Daniele Varrazzo
6d7916cfe1
Internal imports simplified.
...
.c files only need to import psycopg.h: it will in turn import
dependencies from Python and libpq and configure.h. psycopg.h should be
the first to be imported, so the basic imports are not required in
the .h's
As a guideline I'm trying to import from the most specific to the most
generic to detect missing imports in the .h's.
2010-12-12 13:39:32 +00:00
Daniele Varrazzo
ed6a4c8b1a
Dropped PyArg_ParseTuple() calls in functions taking no arguments.
2010-11-09 03:18:54 +00:00
Federico Di Gregorio
611606d532
Changes license to LGPL3 + OpenSSL exception on all source files
2010-02-12 23:34:53 +01:00
Federico Di Gregorio
5c982d90f0
Unified string quoting
2008-11-25 19:18:17 +01:00
Federico Di Gregorio
c1d6073531
Applied COPY patch from Alejandro Dubrovsky
2008-11-25 17:45:22 +01:00
Federico Di Gregorio
ceee4c816f
Merge from jh
2008-07-26 15:10:02 +02:00
Federico Di Gregorio
e95a4d9d2e
get_backend_pid() patch and fixes
2008-07-26 15:09:20 +02: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
James Henstridge
e054004e8f
Add more const qualifiers.
2008-01-21 21:01:08 +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
Daniele Varrazzo
75cb5d75d7
Use escape string syntax for string escape if connected to a server
...
requiring it.
Added a connection flag to store whether E''-style quoting is required: this
avoids repeated PQparameterStatus() calls.
Added a test case to verify correct behavior on strings, unicode and binary
data. Tested with PG versions from 7.4 to 8.3b2, with any server
'standard_conforming_strings' setting and with 'PSYCOPG_OWN_QUOTING' too.
2007-11-11 08:53:44 +00:00
Federico Di Gregorio
967ec370ed
int->size_t transition.
2007-04-13 01:16:22 +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
b074dd4d8b
Encoding fixes.
2007-01-16 23:39:08 +00:00
Federico Di Gregorio
474d8b9d51
Piet Delport patches: 2 of 3.
2006-09-23 05:14:24 +00:00
Federico Di Gregorio
b9fcde1b39
Fixed segfault in Binary/QString.
2006-06-18 05:57:01 +00:00
Federico Di Gregorio
0ce5207871
#warning fix.
2006-06-11 04:04:04 +00:00
Federico Di Gregorio
bfb00b86fd
Better PostgreSQL version check.
2006-05-26 05:22:49 +00:00
Federico Di Gregorio
ec877b0ef9
Final of 8.1.4 securiy patch.
2006-05-24 10:29:35 +00:00
Federico Di Gregorio
9299073649
First half of 8.1.4 securiy patch.
2006-05-24 09:43:55 +00:00
Federico Di Gregorio
6b0b634bae
Code cleanup.
2005-10-18 01:29:47 +00:00
Federico Di Gregorio
4805a93569
mingw patch from Daniele Varazzo.
2005-04-10 03:05:39 +00:00
Federico Di Gregorio
5db7764207
Fixed .rowcount ( closes : #6 ).
2005-03-31 06:26:19 +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
e8e6c0ada3
Preparing release 1.99.12.
2005-03-02 14:16: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