Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Added support for arrays of composite types | Daniele Varrazzo | 2011-09-22 | 1 | -0/+23 | |
| | ||||||
* | Added support for arrays of hstores | Daniele Varrazzo | 2011-09-22 | 1 | -1/+58 | |
| | ||||||
* | Fixed typecasting of arrays containing consecutive backslashes | Daniele Varrazzo | 2011-09-22 | 1 | -0/+11 | |
| | ||||||
* | Added new_array_type() function | Daniele Varrazzo | 2011-09-22 | 1 | -0/+13 | |
| | | | | Allows the creation of a generic array typecaster from Python. | |||||
* | Allocate dynamically memory for the list of columns in COPY | Daniele Varrazzo | 2011-09-12 | 1 | -0/+19 | |
| | | | | Some bloke finds the limit of 8K too restrictive... ticket #68. | |||||
* | Fixed interaction between RealDictCursor and named cursors | Daniele Varrazzo | 2011-09-12 | 1 | -0/+15 | |
| | | | | Closes ticket #67. | |||||
* | WITH HOLD documentation a argument parsing changes | Federico Di Gregorio | 2011-08-10 | 1 | -2/+0 | |
| | | | | Now any true value will do for the withhold parameter. | |||||
* | Merge remote-tracking branch 'piro/devel' into devel | Federico Di Gregorio | 2011-08-10 | 1 | -0/+11 | |
|\ | ||||||
| * | Fixed NamedTupleCursor.executemany() (ticket #65) | Daniele Varrazzo | 2011-08-09 | 1 | -0/+11 | |
| | | ||||||
* | | New 'withhold' parameter for connection.cursor() | Federico Di Gregorio | 2011-08-10 | 1 | -1/+13 | |
|/ | ||||||
* | First try at curs.withhold implementation | Federico Di Gregorio | 2011-07-05 | 1 | -0/+21 | |
| | ||||||
* | Method set_transaction() renamed to set_session() | Daniele Varrazzo | 2011-06-08 | 1 | -24/+24 | |
| | | | | | | 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. | |||||
* | Fixed copyfile refcount in copy_expert | Daniele Varrazzo | 2011-06-07 | 1 | -0/+9 | |
| | | | | | | | In case of early error, jumping to exit would have decref'd the borrowed reference to file. Issue spotted by Dave Malcolm, thanks! | |||||
* | Fixed test to run on Python <= 2.5 | Daniele Varrazzo | 2011-06-03 | 1 | -2/+2 | |
| | | | | tuple.index() is not available on these versions. | |||||
* | Merge branch 'transaction-control' into devel | Daniele Varrazzo | 2011-06-03 | 1 | -3/+248 | |
|\ | ||||||
| * | Use only the isolation levels available on old PG versions | Daniele Varrazzo | 2011-06-03 | 1 | -2/+11 | |
| | | ||||||
| * | Added autocommit property on connection | Daniele Varrazzo | 2011-06-02 | 1 | -0/+92 | |
| | | ||||||
| * | Added partial implementation for set_transaction | Daniele Varrazzo | 2011-06-01 | 1 | -1/+145 | |
| | | | | | | | | autocommit to be implemented yet. | |||||
* | | Test tweaked to deal with missing usecs in BC timestamps | Daniele Varrazzo | 2011-06-03 | 1 | -1/+5 | |
| | | | | | | | | | | Probably depending on compile time options. On my test db usecs are available from PG 8.4. | |||||
* | | Merge branch 'neg-escape' into devel | Daniele Varrazzo | 2011-05-30 | 1 | -0/+10 | |
|\ \ | |/ |/| | ||||||
| * | Fixed escape for negative numbers prefixed by minus operator | Daniele Varrazzo | 2011-05-30 | 1 | -0/+10 | |
| | | | | | | | | Closes ticket #57. | |||||
* | | Use all the isolation levels accepted by PostgreSQL | Daniele Varrazzo | 2011-05-11 | 1 | -13/+19 | |
|/ | | | | In PG 9.1 repeatable read and serializable are distinct levels. | |||||
* | Skip a test on the proper PG function | Daniele Varrazzo | 2011-04-27 | 1 | -1/+1 | |
| | ||||||
* | Don't fetch all the records iterating a NamedTuple cursor on a named cursor | Daniele Varrazzo | 2011-04-26 | 1 | -1/+18 | |
| | ||||||
* | Fixed interaction between NamedTuple and named cursor | Daniele Varrazzo | 2011-04-26 | 1 | -0/+32 | |
| | | | | | Build the nametuple after fetching the first resutl, or else cursor.description will be empty. | |||||
* | Normalize the encoding name at connection | Daniele Varrazzo | 2011-04-08 | 1 | -0/+14 | |
| | | | | | | | | | | | | The encoding can be set by PGCLIENTENCODING, which may be an alternative spelling. Bug reported by Peter Eisentraut. At this point the idea of considering one of the random spellings such as EUC_CN as somewhat "blessed" is debunked. So just store the cleaned-up version of the encoding in the mapping table. Note that the cleaned-up version was needed by the unicode adapter: this requirement has been surpassed as the connection now contains a copy of the Python codec name set whenever the client encoding is set. | |||||
* | Don't check the test db exists at psycopg2.tests import time | Daniele Varrazzo | 2011-03-30 | 1 | -11/+11 | |
| | ||||||
* | Fixed bytea encoding tests skipping when ctypes is not available | Daniele Varrazzo | 2011-03-26 | 1 | -3/+15 | |
| | ||||||
* | Added tests for our own bytea parser | Daniele Varrazzo | 2011-03-26 | 1 | -0/+86 | |
| | | | | | Because the parse function is not supposed to be exposed in Python, use ctypes to directly inspect the C function. | |||||
* | Parse bytea output format ourselves instead of using the libpq | Daniele Varrazzo | 2011-03-26 | 2 | -27/+1 | |
| | | | | | | PG 9.0 uses the hex format by default, and clients < 9.0 can't parse that format, requiring client update and great care in what is linked at runtime, and generally giving headache to users and transitively us. | |||||
* | Correctly detect an empty query sent to the backend | Daniele Varrazzo | 2011-03-04 | 1 | -0/+6 | |
| | | | | Closes ticket #46. | |||||
* | Fixed use of the new return value of HstoreAdapter.get_oids() | Daniele Varrazzo | 2011-02-25 | 1 | -1/+1 | |
| | ||||||
* | Don't limit the hstore search to the public schema only | Daniele Varrazzo | 2011-02-25 | 1 | -1/+1 | |
| | | | | | | Looks like there is a case for installing hstore somewhere else (see ticket #45). And after all the typecaster can be registered on a list of OIDs, so let's grab them all. | |||||
* | Raise an exception if the libpq fails to decode bytea in hex format | Daniele Varrazzo | 2011-02-23 | 3 | -1/+47 | |
| | ||||||
* | Fixed test for execution with older PostgreSQL versions | Daniele Varrazzo | 2011-02-23 | 1 | -1/+2 | |
| | ||||||
* | The cursor name can be a non-valid PostgreSQL identifier | Daniele Varrazzo | 2011-02-23 | 1 | -0/+10 | |
| | ||||||
* | Added oid parameter to register_hstore() | Daniele Varrazzo | 2011-02-21 | 1 | -0/+20 | |
| | | | | | | | The parameter is mostly useful with async connections that would need a different protocol to be queried. Issue reported by Jan "the Asynchronous". | |||||
* | Tweaks to test timing to avoid errors on test VMs | Daniele Varrazzo | 2011-02-20 | 1 | -3/+3 | |
| | ||||||
* | Added regression test to check {} is also a valid string | Daniele Varrazzo | 2011-02-20 | 1 | -0/+3 | |
| | ||||||
* | Add a type converter to handle untyped empty arrays. | Benjamin Poulain | 2011-02-20 | 1 | -0/+10 | |
| | | | | | | | | Empty array can be returned untyped by postgres. To handle this case, a special handler is added for the type UNKNOWNOID. If the value return by the database is strictly equal to "{}", the value is converted. Otherwise, the conversion fallback on the default handler. | |||||
* | Merge remote branch 'jason/devel' into devel | Daniele Varrazzo | 2011-02-19 | 1 | -2/+2 | |
|\ | | | | | | | | | Conflicts: psycopg/notify_type.c | |||||
| * | Merge branch 'devel' of github.com:jerickso/psycopg into devel | Jason Erickson | 2011-02-18 | 1 | -2/+2 | |
| |\ | ||||||
| | * | Again, increase timeout on concurrent_exec tests | Jason Erickson | 2011-02-18 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | Truly increase the sleep timeout to 4 seconds and the check to 7. Previous commit message indicated that, but reality was different. | |||||
* | | | Added complete roundtrip test with copy_expert and Unicode | Daniele Varrazzo | 2011-02-19 | 1 | -1/+34 | |
| | | | ||||||
* | | | Provide cursor.description as named tuple if possible | Daniele Varrazzo | 2011-02-19 | 3 | -21/+58 | |
|/ / | | | | | | | If namedtuple() is not available, use regular tuples. | |||||
* | | Make Binary(None) work as expected, adapting to NULL | Daniele Varrazzo | 2011-02-18 | 1 | -0/+5 | |
| | | | | | | | | Issue reported by Stefano Dal Pra. | |||||
* | | Some cleanup in mogrify | Daniele Varrazzo | 2011-02-18 | 1 | -0/+11 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Raise an exception on incomplete placeholders. - Minor speedups. - Don't change the string in place (??!!) if the placeholder is not s and the value is null. The latter point can be done because downstream we don't accept anything different from s anyway (in the Bytes_Format function). Notice that now the format string is constant whatever the arguments. This means that executemany is still more inefficient than it should be as mogrify may work only on the parameters. However this is an implementation only worthwhile if we start supporting real parameters. Let's talk about that for the next release. | |||||
* | | Added cursor.itersize | Daniele Varrazzo | 2011-02-17 | 1 | -3/+3 | |
| | | | | | | | | | | | | | | The value is used to control the number of records to fetch per network roundtrip in named cursors iteration. Used to avoid the inefficient arraysize default of 1 without giving this value the magic meaning of 2000. | |||||
* | | Merge remote branch 'jason/devel' into devel | Daniele Varrazzo | 2011-02-17 | 1 | -2/+2 | |
|\ \ | |/ | ||||||
| * | Increase timeout on concurrent_execution test | Jason Erickson | 2011-02-14 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | With test_concurrent_execution test, checking two threads issuing a pg_sleep of 2 seconds and and check if they complete in under 3 seconds occasionally fails when the test is run in a virtual machine on a VM Server with other virtual machines running. Increased the sleep to 4, and the check to 7, giving 3 seconds buffer instead of 1 second. |