Daniele Varrazzo
83d457361e
Fixed docs for the copy null parameter
2011-10-20 11:12:05 +01:00
Daniele Varrazzo
2671472de8
Dropped leftover extra char, already accounted for before
2011-10-20 11:11:57 +01:00
Federico Di Gregorio
512b41cc9c
Fix encoding when Zope explicitly pass empty "enc" argument
2011-10-20 09:52:22 +02:00
Daniele Varrazzo
6fc167a7b1
Unregister the composite array caster after the test
...
Otherwise the refcount script will report a leak.
2011-10-19 22:00:59 +01:00
Daniele Varrazzo
60b49f5c45
Avoid PyOS_snprintf to calculate the copy command buffer size
...
On windows it returns -1 instead of sometihing portable. So just ditch
the static buffer and just use a dynamic one to compose the command.
Also squashed a couple of buglets in copy_to: copyfile was decremented
before being set to null, size_t was used instead of Py_ssize_t.
2011-10-19 21:01:53 +01:00
Daniele Varrazzo
ff8158d7c0
Simplification in the COPY command composition
...
Dropped the branch if NULL is specified or not: just use the default \N.
Also fixed copy_from/copy_to docstrings.
2011-10-19 20:31:09 +01:00
Daniele Varrazzo
0f4fd0d828
Test suite fixed to make it compatible with the ctypes implementation
2011-10-19 02:25:53 +01:00
Daniele Varrazzo
d79661c87f
All unit test modules have a test_ prefix
...
Both for consistency and for test discovery.
2011-10-19 02:20:43 +01:00
Daniele Varrazzo
3e39b23835
Notice -> Note in the docs, and a handful of other typo fixed
2011-10-14 23:59:49 +01:00
Daniele Varrazzo
37a9eb3615
Test and document the named cursor stealing technique
2011-10-14 23:17:24 +01:00
Daniele Varrazzo
dde4c0de3d
Decimal adapter registration moved from C to Python
...
Fixes Decimal adaptation in sub-interpreter, where the Decimal class has
a different identity from the one in the main interpreter.
Closes ticket #52 .
2011-10-14 22:35:56 +01:00
Daniele Varrazzo
6da39e3a37
Fixed pasto in docs
2011-10-06 18:38:30 +01:00
Daniele Varrazzo
5fa1729000
Skip test on array of records on PG 8.3
2011-10-05 00:44:44 +01:00
Daniele Varrazzo
e4424bdfdc
Fixed tests to run with antebellum Postgres versions
2011-10-05 00:12:35 +01:00
Daniele Varrazzo
50b445fa12
Merge branch 'array-typecast' into devel
2011-09-22 20:00:08 +02:00
Daniele Varrazzo
8963b8adcb
Added support for arrays of composite types
2011-09-22 19:57:42 +02:00
Daniele Varrazzo
2f9ceeac64
Added support for arrays of hstores
2011-09-22 19:56:58 +02:00
Daniele Varrazzo
c4e6d7d982
Fixed typecasting of arrays containing consecutive backslashes
2011-09-22 18:14:16 +01:00
Daniele Varrazzo
e3054ac9f3
Added new_array_type() function
...
Allows the creation of a generic array typecaster from Python.
2011-09-22 15:51:21 +01:00
Daniele Varrazzo
6c8051907c
Fixed doc blocks
...
Raise error with docutils 0.8.1. Probably docutils 0.7 was more lenient.
2011-09-22 15:50:50 +01:00
Daniele Varrazzo
cd6e2cd8f2
Don't leak private variables into the psycopg2.extensions interface
2011-09-22 14:34:14 +01:00
Daniele Varrazzo
8fb08efae7
Allocate dynamically memory for the list of columns in COPY
...
Some bloke finds the limit of 8K too restrictive... ticket #68 .
2011-09-12 02:21:59 +01:00
Daniele Varrazzo
d67d50b434
Fixed interaction between RealDictCursor and named cursors
...
Closes ticket #67 .
2011-09-12 02:20:53 +01:00
Daniele Varrazzo
29932c488f
errorcodes map updated to PostgreSQL 9.1
2011-08-22 17:29:14 +01:00
Federico Di Gregorio
880aa07a58
WITH HOLD documentation a argument parsing changes
...
Now any true value will do for the withhold parameter.
2011-08-10 19:21:12 +02:00
Federico Di Gregorio
a59d88c703
Merge remote-tracking branch 'piro/devel' into devel
2011-08-10 18:36:24 +02:00
Federico Di Gregorio
479bdf7458
New 'withhold' parameter for connection.cursor()
2011-08-10 18:25:46 +02:00
Daniele Varrazzo
1861e0010d
Fixed --static-libpq setup option (ticket #64 )
2011-08-09 11:44:30 +01:00
Daniele Varrazzo
9870ca4dce
Fixed NamedTupleCursor.executemany() (ticket #65 )
2011-08-09 11:44:30 +01:00
Daniele Varrazzo
a2ee25ecfe
Check the connection status before putting back into the pool
...
Rollback connections in transaction or in error.
Discard broken connections.
Closes ticket #62 .
2011-08-09 11:44:30 +01:00
Daniele Varrazzo
11ff27b5af
Added documentation for putconn's close parameter
2011-08-09 11:44:30 +01:00
Daniele Varrazzo
4fd5f3267b
Raise PoolError when putting a connection not belonging to the pool
...
A KeyError was raised instead.
2011-08-09 11:44:30 +01:00
Daniele Varrazzo
de6f2ac387
Grab the GIL when checking for errors occurred
...
The problem was causing a segfault on BEGIN if the server is disconnected
after the connection is created.
2011-08-09 11:44:30 +01:00
Daniele Varrazzo
d9fce1f837
Mention the lazy uuid import in the news file
2011-08-09 11:44:30 +01:00
Daniele Varrazzo
e3b32dcee1
Bump to next dev version
2011-08-09 11:44:30 +01:00
Daniele Varrazzo
30a046c602
Fixed adaptation doc example
...
Close ticket #63
2011-07-24 20:42:23 +01:00
Federico Di Gregorio
2f6336ea78
First try at curs.withhold implementation
2011-07-05 10:28:34 +02:00
Marko Kreen
cb1d163f4f
lazy import for uuid module
...
Attached patch moves uuid import from inside try-except
to register_uuid function. Reason: uuid module import is *very*
heavy. It goes into OS searching for various .dll/.so libraries,
lauches 'ldconfig' and so on...
With this patch, 200x python -c 'import psycopg2.extras'
goes from 22s to 7s. (plain 'import psycopg2' is 6s)
--
marko
2011-06-28 17:28:43 +02:00
Federico Di Gregorio
f8a5dabdc1
Preparing release 2.4.2
2011-06-12 21:40:44 +02:00
Federico Di Gregorio
3ec9677978
Aligned casing of isolation levels with PostgreSQL documentation
2011-06-12 21:40:31 +02:00
Daniele Varrazzo
d76d136b4f
Introductory docs section on transaction control improved
...
Added big fat warning about idle in transaction and reference to
set_session().
2011-06-08 14:38:57 +01:00
Daniele Varrazzo
d2b28abced
Method set_transaction() renamed to set_session()
...
In fact it doesn't change "the transaction", as there has to be no
transaction when invoked. The effect instead is to execute SET SESSION
CHARACTERISTICS.
2011-06-08 14:22:11 +01:00
Daniele Varrazzo
1a51cfe274
Better error message if deferrable is used in PG < 9.1
2011-06-08 10:59:27 +01:00
Daniele Varrazzo
0a1bbb56cd
Dropped redundant semicolons at the end of internal queries
...
For consistency with other queries, and probably we give less work to do
to the server parser (a ridiculously tiny amount).
2011-06-08 09:22:35 +01:00
Daniele Varrazzo
5c13dac5ff
Merge branch 'setup-cleanup' into devel
2011-06-08 08:22:03 +01:00
Jason Erickson
5ee7bac66b
No manifest reinsertion into 2.4/2.5 with MSVC
...
Python versions 2.4 and 2.5 for MSVC on Windows do not need to manifest file
reinserted into the DLL. The VC compiler for these versions does not have the
mt.exe executable to insert the manifest file.
2011-06-08 08:21:32 +01:00
Daniele Varrazzo
178698f9e8
Merge branch 'setup-cleanup' into devel
2011-06-07 23:58:58 +01:00
Daniele Varrazzo
7b017e7944
Mention Steve and his work in the NEWS file
...
That's Steve's Job! :D
2011-06-07 23:58:37 +01:00
Daniele Varrazzo
dc92161dda
Delay detection of the compiler in setup.py
...
At init time, build_ext is not configured, so neither the --compiler option
nor settings in setup.cfg/distutil.cfg is effective.
Steve, I told you distutils was a mess :)
2011-06-07 23:28:17 +01:00
Daniele Varrazzo
d0b97feab3
More cleanup in pg_config detection from Windows registry
2011-06-07 22:35:22 +01:00