Daniele Varrazzo
66fdaeaf09
Propagate read error messages in COPY FROM
...
Fix ticket #270 .
2015-02-08 01:43:37 +00:00
Daniele Varrazzo
7c5bc1b6cf
Convert Postgres time 24:00 into 00:00
...
Fix ticket #278 .
2015-02-08 00:42:31 +00:00
Daniele Varrazzo
e3c6b46416
Don't try to close the server cursor in error state
...
`close()` is implicitly called by `__exit__()`, so an exit on error
would run a query on a inerr connection, causing another exception
hiding the original one. The fix is on `close()`, not on `__exit__()`,
because the semantic of the latter is simply to call the former.
Closes #262 .
2014-09-16 06:51:46 +01:00
Daniele Varrazzo
75bce3e39a
Release notes cleanup before releasing 2.4.5
...
Also tweaked tickets remapping offset.
2014-08-30 18:23:24 +01:00
Daniele Varrazzo
11c9fcb9d4
Merge branch 'drop-lighthouse' into maint_2_5
2014-08-28 17:08:17 +01:00
Daniele Varrazzo
0715771845
Dropped creation of errcodes with missing spec field
...
On further inspection these names are just aliases for values already
defined: we don't need the duplication.
2014-08-28 02:05:54 +01:00
Daniele Varrazzo
8cf30509ad
Fixed memory leak with large objects
...
Deallocating closed large objects failed to decrement the connection
refcount. The fact the lobject is closed doesn't matter for refcount.
Issue detected by the always useful scripts/refcounter.py
With an extra bit of unrequested whitespace love.
2014-08-26 03:56:07 +01:00
Daniele Varrazzo
3dad8344c0
Added test to verify _psycopg can be imported
2014-08-26 03:55:47 +01:00
Daniele Varrazzo
2231578922
Added plural version of the tickets role
2014-08-24 02:39:09 +01:00
Daniele Varrazzo
c114aff435
Document WITH HOLD corrections.
2014-08-21 05:46:57 +01:00
Daniele Varrazzo
d232f25a68
Convert pool arguments to int
...
Failing to do so may cause dangerous misbehaviours such as an unbounded
pool (because of lame comparison operators in Python 2).
Fix ticket #220 .
2014-08-13 02:37:00 +01:00
Daniele Varrazzo
774c1ff151
Habemus jsonb
2014-08-13 01:58:28 +01:00
Daniele Varrazzo
f82d9d4db3
Add a few missing errcodes
...
They are used in the code but not defined in the SGML docs so the script
failed to parse them.
2014-07-31 13:35:52 +01:00
Daniele Varrazzo
17e9e7d327
Merge branch 'bug-219' into maint_2_5
2014-06-06 21:32:48 +02:00
Daniele Varrazzo
fd0ba0b2d3
Fixed segfault if COPY statements are executed
...
Close ticket #219
2014-06-06 21:32:08 +02:00
Daniele Varrazzo
5ebf6744ef
Don't ignore silently the cursor.callproc
argument without a length
2014-06-05 02:46:41 +02:00
Daniele Varrazzo
e9335b08f8
Copy operations correctly set the cursor.rowcount attribute
...
Fixes ticket #180 .
2014-05-05 23:52:41 +01:00
Daniele Varrazzo
5a660b80f5
Fixed explicit connection.cursor(cursor_factory=None)
...
Fixes issue #210 .
2014-04-30 17:56:09 +01:00
Daniele Varrazzo
e3ecae75a0
Merge branch 'connection-closed' into maint_2_5
...
NEWS for released 2.5.3 reordered.
2014-04-05 16:10:32 +01:00
Daniele Varrazzo
12c2fafa86
Close the connection if discovered bad on poll()
2014-04-05 15:52:41 +01:00
Daniele Varrazzo
a201307185
Avoid printing the typecast name in debug statement
...
The way we were doing it is unsafe and causes assertion failures on Py3.
Fixes ticket #188
2014-04-04 19:26:35 +01:00
Daniele Varrazzo
cefef286a6
Fixed use of Python object with refcount 0 in cursor_init
...
Caused segfault running test_cursor.CursorTests.test_invalid_name under
Python 3.4 built in debug mode.
2014-04-04 19:26:34 +01:00
Daniele Varrazzo
df7018a5d4
Work around pip issue #1630 breaking 'pip -e git+url'
...
https://github.com/pypa/pip/issues/1630
Fixes ticket #18 (opened in 2010!)
2014-04-04 17:57:35 +01:00
Daniele Varrazzo
25ae646dcf
Fixed bug number typo in NEWS file
2014-04-03 02:45:22 +01:00
Daniele Varrazzo
2245b56dc1
Fixed overflow opening a lobject with an oid not fitting in a signed int
...
Fixes 🎫 `203`.
2014-04-03 02:35:46 +01:00
Daniele Varrazzo
65fbe9159a
Fixed dsn and closed attributes in failing connection subclasses.
...
From ticket #192 discussion.
2014-04-03 01:41:19 +01:00
Daniele Varrazzo
d1e1243ba8
Close a connection if PQexec returned NULL
...
This happens for Socket connections, not for TCP ones, where a result
containing an error is returned and correctly handled by pq_raise()
Closes ticket #196 but not #192 : poll() still doesn't change the
connection closed.
2014-03-06 18:17:32 +00:00
Daniele Varrazzo
f597c36f42
Allow get_transaction_status on closed connections
...
It's a local operation and the libpq functions has a NULL guard.
2014-03-06 18:02:08 +00:00
Daniele Varrazzo
d6da4ed09f
Don't segfault on uninitialized cursor
...
It can happen with bad cursor subclasses not calling super's init. Raise
an exception instead of segfaulting.
Closes #195
2014-02-26 19:42:29 +00:00
Daniele Varrazzo
e840e00278
Bug #194 confirmed fixed: newsfile updated.
2014-02-24 15:15:54 +00:00
Daniele Varrazzo
0e86fc164f
Mention Range order in the news file
2014-02-22 23:06:03 +00:00
Daniele Varrazzo
9ac01d060d
Fixed debug build on Windows
...
Patches on master by James Emerton, from github pull request #8 .
2014-01-14 21:56:36 +00:00
Daniele Varrazzo
7e9e11ee27
Check connection type in lobject init
...
Fixes ticket #187 .
2013-11-27 12:42:57 +00:00
Daniele Varrazzo
09cf64dda4
Meaningful connection errors report a meaningful message
...
Fixes issue #173 .
2013-10-16 15:28:16 +01:00
Daniele Varrazzo
0e08fbb20b
Fixed pickling of exceptions with no pgerror/pgcode set
...
Fixes ticket #170 .
2013-07-19 16:05:48 +01:00
Daniele Varrazzo
96248d0f09
Fixed titles in newsfile
...
The first title at the same level of the main releases helps getting a
more regular ToC in the docs main page.
2013-07-19 15:54:35 +01:00
Daniele Varrazzo
889b1d826e
Untrack the connection before closing to avoid possible double-free
...
From Gangadharan S.A. Fixes issue #166 .
2013-06-20 16:35:01 +01:00
Daniele Varrazzo
eb36e75b89
Fixed comparison of Range
with non-range objects
...
Fixes ticket #164 .
Patch from Chris Withers on master.
2013-06-18 14:16:06 +01:00
Piotr Kasprzyk
5f320e52f4
Fix multiple misspellings
2013-04-26 10:32:21 +01:00
Daniele Varrazzo
244a58e5c7
Mention Solaris round fix in NEWS file
2013-04-21 18:43:08 +01:00
Daniele Varrazzo
9e15f54fe8
Added cursor_factory connection attribute and connect() parameter
2013-04-07 02:30:12 +01:00
Daniele Varrazzo
b6873ee1ab
Dropped support for Python 2.4
2013-03-20 23:40:13 +00:00
Daniele Varrazzo
87962728ee
Fixed ticket number in NEWS file
2013-03-20 11:42:15 +00:00
Daniele Varrazzo
abb3027aa3
NEWS file reformatted to reST and included in the docs
2013-03-18 15:42:10 +00:00
Daniele Varrazzo
97311967e8
Merge branch 'diagnostics' into devel
2013-03-18 02:21:09 +00:00
Daniele Varrazzo
fe6eb127fc
Fixed bad interaction of setup.py with other dependencies
...
The problem is in Distribute dependencies on Python 3. Create a new command
class instead of changing inplace the one other projects may use.
Close ticket #153 .
2013-03-18 02:18:50 +00:00
Daniele Varrazzo
49c3569919
Diagnostics added to the NEWS file
2013-03-18 02:11:45 +00:00
Daniele Varrazzo
e1ff432f4c
Merge branch 'dead-bytes' into devel
2013-03-16 16:25:17 +00:00
Daniele Varrazzo
4883ce7d91
Added ZPsycopgDA URL to the NEWS file
2013-03-16 16:23:02 +00:00
Daniele Varrazzo
66d6c68dcc
Properly cleanup memory of broken connections
...
Fixed ticket #148 .
2013-03-16 11:56:38 +00:00