Commit Graph

28 Commits

Author SHA1 Message Date
Chris Mildebrandt
67354ed14f cleanup remaining GPL license text 2014-05-20 09:42:41 -07:00
Daniele Varrazzo
61d496b2ed Script to test ticket #58 moved into sandbox
We don't need it distributed in the sdist
2013-04-07 22:02:52 +01:00
Daniele Varrazzo
58d048198f Close the connection on error in callback
Unfortunately PQcancel blocks, so it's not better than PQgetResult.
It has been suggested to use PQreset in non-blocking way but this would give
the Python program the burden of handling a connection done but not configured
in an unexpected place.
2012-10-09 02:01:29 +01:00
Daniele Varrazzo
7632e1ae46 Get the result from the connection after the green panic
Otherwise the connection won't be usable in case we manage
to put it back on track (libpq reports "another command is
already in progress")
2012-10-09 02:01:29 +01:00
Daniele Varrazzo
fa032f09fb Attempt to fix issue #113.
If the network is down, trying to read blocking will hang the process hard
(ctrl-c not working). Send a cancel signal instead (as suggested in
http://archives.postgresql.org/pgsql-hackers/2012-07/msg00903.php) and go
back into a green polling: this should allow a further error (e.g. another
ctrl-c) to break the loop. In this case we cannot assume anything about
the state of the connection, so we close it.
2012-10-09 02:01:29 +01:00
Federico Di Gregorio
6521fb5a44 Fixed error related to calling C typecasters from Python ones 2010-05-15 19:34:56 +02:00
Federico Di Gregorio
5db66038fe Fix to double free segfault in connection 2009-04-19 16:51:31 +02:00
Federico Di Gregorio
e3a5ae8e20 Added a couple of test scripts to sandbox 2009-04-19 16:25:49 +02:00
Federico Di Gregorio
f5ec676566 Added isready() error test to sandbox 2009-01-10 18:48:31 +01:00
Federico Di Gregorio
5a428642f8 COPY problem tests and partial fix 2008-05-27 17:40:19 +02:00
Federico Di Gregorio
1fddaa8562 Added a couple of files used for tests. 2008-04-14 04:13:07 +00:00
Federico Di Gregorio
1c16009985 Added support for NULL in arrays (closes: #154) 2007-01-19 14:08:06 +00:00
Federico Di Gregorio
be9822801f Added a couple of tests to the sandbox. 2006-09-01 06:49:05 +00:00
Federico Di Gregorio
07be5df881 Fix for #93. 2006-06-11 05:09:59 +00:00
Federico Di Gregorio
267b4171ec Sandbox stuff (not distributed but can help others to debug.) 2006-06-07 23:46:32 +00:00
Federico Di Gregorio
5871596eda Some more tests in sandbox. 2006-01-10 16:13:37 +00:00
Federico Di Gregorio
8ffafd75eb Added sandbox stuff to the repository. 2005-11-28 03:44:14 +00:00
Federico Di Gregorio
164eb32817 New time/date locale-safe typecasting code. 2005-11-14 11:57:45 +00:00
Federico Di Gregorio
0a73b75c51 SUSE addition to setup.cfg. 2005-10-25 16:00:49 +00:00
Federico Di Gregorio
ed23aeb37c named cursors are working. 2005-10-25 15:35:11 +00:00
Federico Di Gregorio
67720de497 Fixed segfault in connection.set_client_encoding(). 2005-09-30 16:48:41 +00:00
Federico Di Gregorio
75e7273d85 Solid tokenization code. 2005-03-23 17:17:48 +00:00
Federico Di Gregorio
cb9cec57c0 Array support for all basic types. 2005-03-23 11:02:13 +00:00
Federico Di Gregorio
19cb161d27 Array tokenization seems working. 2005-03-23 10:32:30 +00:00
Federico Di Gregorio
cddb1a15d4 Array quoting (not completely working.) 2005-03-23 00:43:36 +00:00
Federico Di Gregorio
08a4965342 isready/prefetch fix. 2004-12-14 03:33:03 +00:00
Federico Di Gregorio
61b4ff6e6f First fixed to the async core. 2004-11-20 10:57:54 +00:00
Federico Di Gregorio
c904d97f69 Initial psycopg 2 import after SVN crash. 2004-10-19 03:17:12 +00:00