Daniele Varrazzo
4c336a51bc
Added test to check issue #40
2011-02-12 20:19:02 +00:00
Marti Raudsepp
9cb72a38da
Add negative infinity support for Python->pg conversion
2011-02-12 20:19:02 +00:00
Daniele Varrazzo
9e9c221637
Work around a 2to3 next fixer bug in a test
2011-02-11 17:54:41 +00:00
Daniele Varrazzo
1a0c494417
Document difference of string handling in Python 2/3
2011-02-10 02:16:55 +00:00
Daniele Varrazzo
713b86acdf
Added FAQ point about bytea_output in PostgreSQL 9.0
2011-02-10 02:16:55 +00:00
Daniele Varrazzo
9c81f6c186
Improved adaptation documentation
...
Documented __conform__() and prepare().
2011-02-10 02:16:24 +00:00
Daniele Varrazzo
7a058403ca
Fixed mapping for composite types defined in a schema
2011-02-09 02:22:03 +01:00
Daniele Varrazzo
8ac5f0070a
Fields order enforced in composite types adapter
2011-02-09 02:21:55 +01:00
Federico Di Gregorio
352d0d1f07
Preparing 2.4 beta 1
...
* Unified NEWS (we don 't support 2.0 anymore)
* Bumped up version in setup.py and ZPsycopgDA/DA.py
2011-02-06 16:54:35 +01:00
Federico Di Gregorio
da27142882
Merge branch 'python3' into python2
2011-02-06 16:47:05 +01:00
Daniele Varrazzo
c97fa1c476
Merge branch 'iter-named-cursor' into python2
2011-02-05 15:28:30 +01:00
Daniele Varrazzo
fab31e9441
Fetch 'arraysize' records per roundtrip in named cursors iteration
...
Closes ticket #33 .
2011-02-05 15:24:00 +01:00
Daniele Varrazzo
b544354db2
COPY sends unicode to a file if it derives from io.TextIoBase
...
Fixes ticket #36 .
2011-02-05 15:12:37 +01:00
Daniele Varrazzo
b358c54f02
More efficient cursor.iter: fetch many records at time.
2011-02-04 12:22:07 +00:00
Daniele Varrazzo
8a1de1ec4e
Added test to verify named cursor efficiency.
...
Iter shouldn't fetch one record at time.
2011-02-01 03:01:47 +00:00
Daniele Varrazzo
d40b394c50
Merge branch 'python2' into python3
2011-02-01 02:27:45 +00:00
Daniele Varrazzo
9433a6879f
Merge remote branch 'origin/python2' into python2
...
Conflicts:
NEWS-2.3
2011-02-01 02:24:33 +00:00
Daniele Varrazzo
a2dcf504b5
Hopefully really fixed crash in datetime adapter.
...
Verified with gcc 4.3. Notice that on gcc 4.4 the bug was not present.
2011-02-01 02:00:47 +00:00
Daniele Varrazzo
bde443a902
Fixed standard_conforming_strings filtering in Python 3 tests
2011-01-18 02:45:31 +00:00
Daniele Varrazzo
9f90f049ab
Merge branch 'python2' into python3
...
Conflicts:
tests/bug_gc.py
tests/types_extras.py
2011-01-18 02:11:58 +00:00
Daniele Varrazzo
153c30f24b
Skip composite type tests if the server doesn't support them
2011-01-18 02:09:49 +00:00
Daniele Varrazzo
ca3d9da83b
Skip GC bug test if uuid is not available
2011-01-18 02:09:49 +00:00
Daniele Varrazzo
06059a216f
Fixed hstore test in PG 9.x with standard_conforming_strings off
2011-01-18 00:58:33 +00:00
Daniele Varrazzo
8e1257d7d0
Fixed check for pg_sleep availability in tests
...
The function is available since PG 8.2.
2011-01-18 00:57:27 +00:00
Daniele Varrazzo
d0e36d194c
Added icon removed from Zope 2.12.9 to the ZPsycopgDA package
...
Closes ticket #30 . Bug report and patch by Pumukel.
2011-01-14 16:31:57 +01:00
Daniele Varrazzo
332acccc6e
Replace b('str') with b'str' in Python 3
...
This avoids an encode() call for each of these constants.
Use a custom 2to3 fixer in setup.py to perform the conversion.
2011-01-13 11:37:40 +00:00
Daniele Varrazzo
3ba0631dbb
A few large objects tests fixed
...
The behavior changed in Python 3 after the lobject-decode merge.
2011-01-10 22:05:47 +00:00
Daniele Varrazzo
36d9ffea32
Merge branch 'lobject-decode' into python3
2011-01-10 00:49:04 +00:00
Daniele Varrazzo
789dda1173
lobject read and write can deal with both bytes and unicode
...
On write, unicode is encoded in connection encoding.
On read, respect the lobject mode 't' or 'b'.
2011-01-10 00:46:51 +00:00
Daniele Varrazzo
ba1d77a297
Large object mode parsing refactored
...
Added parsing of text/binary mode.
2011-01-10 00:46:51 +00:00
Daniele Varrazzo
f63167a92c
Added tests to check large objects decoding
2011-01-10 00:46:51 +00:00
Daniele Varrazzo
2cde9033ac
Added documentation for Unicode support in large object
...
Not implemented yet!
2011-01-10 00:46:51 +00:00
Daniele Varrazzo
79048ff19a
Merge branch 'python2' into python3
...
Conflicts:
NEWS-2.3
tests/__init__.py
tests/test_lobject.py
tests/test_quote.py
tests/testutils.py
2011-01-10 00:46:02 +00:00
Daniele Varrazzo
f345e7daeb
Merge branch 'python32' into python3
2011-01-10 00:25:09 +00:00
Daniele Varrazzo
48588e5f69
Invalidate large objects after a two-phase commit operation
2011-01-10 00:20:55 +00:00
Daniele Varrazzo
935c25730a
Fixed segfault in large object close.
...
Check that the connection is not closed/faulty before attempting lo_close.
2011-01-10 00:11:14 +00:00
Daniele Varrazzo
38641b93ea
Test decorator moved into the test utilities module
2011-01-09 23:44:58 +00:00
Daniele Varrazzo
15a09da96d
Added license to unit tests
...
As the test suite is now part of the source distribution.
2011-01-09 23:44:35 +00:00
Daniele Varrazzo
f8c4335f35
Avoid ResourceWarning in tests in Python 3.2
2011-01-08 23:54:48 +00:00
Daniele Varrazzo
43c8fce45c
Silence warnings due to deprecated TestCase methods
...
With a veiled criticism.
2011-01-08 23:54:17 +00:00
Daniele Varrazzo
ac5cde8834
Only use absolute imports in the package
...
In Python 3.2b2 the relative imports are not converted into explicit
ones (with .).
2011-01-08 01:24:28 +00:00
Daniele Varrazzo
9deb16484d
Don't define a CObject API in Python 3.2
...
The API is not available: a PyCapsule should be used. Nobody seems
needing it for now.
2011-01-08 01:24:16 +00:00
Daniele Varrazzo
7c1b03bd45
All tests made executable.
2011-01-07 00:58:29 +00:00
Daniele Varrazzo
b8c8cddc2d
Fixed argument parsing in lobject.read
...
Using an int instead of a Py_ssize_t randomly crashed Python 3.1 64 bit.
2011-01-04 02:27:02 +01:00
Daniele Varrazzo
80bd6e2794
Merge branch 'python2' into python3
...
Conflicts:
NEWS-2.3
psycopg/connection_type.c
tests/test_connection.py
tests/types_basic.py
2011-01-03 21:43:02 +01:00
Daniele Varrazzo
627df15995
Merge branch 'noleak' into python2
2011-01-03 21:39:35 +01:00
Daniele Varrazzo
8d44d0f1c7
Mention refcount fixes in NEWS files
2011-01-03 21:34:49 +01:00
Daniele Varrazzo
abd7991968
Fixed refcount bug with connection destroyed in a 2PC transaction
2011-01-03 21:34:49 +01:00
Daniele Varrazzo
5f6e773575
Broken circular reference in async execution
...
If a connection is destroyed before an async operation is completed, the
`async_cursor` member creates a reference loop, leaving the connection and
the cursor alive. `async_cursor` is now a weak reference.
2011-01-03 21:34:49 +01:00
Daniele Varrazzo
19ff51ae75
The cursor is weakly referenceable
2011-01-03 21:34:49 +01:00