Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| | * | | | | Fix async replication and test. | Oleksandr Shulgin | 2015-10-15 | 4 | -66/+143 | |
| | | | | | | ||||||
| | * | | | | Use quote_ident from psycopg2.extensions | Oleksandr Shulgin | 2015-10-15 | 1 | -0/+14 | |
| | | | | | | ||||||
| | * | | | | Merge branch 'master' into feature/replication-protocol | Oleksandr Shulgin | 2015-10-15 | 1 | -1/+19 | |
| | |\ \ \ \ | | | |/ / / | ||||||
| | * | | | | Update stop_repl, require replication consumer to be a callable. | Oleksandr Shulgin | 2015-10-14 | 1 | -1/+5 | |
| | | | | | | ||||||
| | * | | | | Fix stop_replication: always raise outside the loop. | Oleksandr Shulgin | 2015-10-14 | 1 | -0/+12 | |
| | | | | | | ||||||
| | * | | | | Fix ReplicationTest: no NotSupportedError now. | Oleksandr Shulgin | 2015-10-14 | 2 | -8/+14 | |
| | | | | | | ||||||
| * | | | | | Merge branch 'master' into nul-terminator | Daniele Varrazzo | 2016-08-07 | 1 | -0/+7 | |
| |\ \ \ \ \ | ||||||
| | * | | | | | Make Range pickleable | Jonathan Ross Rogers | 2016-08-07 | 1 | -0/+7 | |
| | | |_|_|/ | | |/| | | | ||||||
| * | | | | | Throw an exception when a NUL character is used as a parameter. | Alexander Schrijver | 2016-07-18 | 1 | -0/+9 | |
| |/ / / / | ||||||
| * | | | | Merge branch 'conn-get-parameters' | Daniele Varrazzo | 2016-07-01 | 1 | -0/+7 | |
| |\ \ \ \ | ||||||
| | * | | | | Add skip_before_libpq for test_get_dsn_parameters | Oleksandr Shulgin | 2015-10-30 | 1 | -0/+1 | |
| | | | | | | ||||||
| | * | | | | Fix typo in a new test name | Oleksandr Shulgin | 2015-10-30 | 1 | -1/+1 | |
| | | | | | | ||||||
| | * | | | | Add connection.get_dsn_parameters() | Oleksandr Shulgin | 2015-10-30 | 1 | -0/+6 | |
| | | |/ / | | |/| | | ||||||
| * | | | | Allow adapting bytes using QuotedString on Python 3 too | Daniele Varrazzo | 2016-07-01 | 1 | -3/+12 | |
| | | | | | | | | | | | | | | | | | | | | Close #365. | |||||
| * | | | | Fixed encoding tests on Py3 | Daniele Varrazzo | 2016-07-01 | 1 | -3/+3 | |
| | | | | | ||||||
| * | | | | Don't hope to encode stuff in an arbitrary encoding | Daniele Varrazzo | 2016-07-01 | 1 | -3/+9 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libpq's PQescapeString will use the same encoding it has seen before in a connection (static_client_encoding). So I think I'll leave this feature here for people who know what is doing, but won't really document it as a feature: it can't really work in a generic way (unless adding some disgusting hack like creating a fake connection with the encoding we want to call PQescapeStringConn instead of PQescapeString). | |||||
| * | | | | Test moved to the right module, cleanup, but same problem | Daniele Varrazzo | 2016-07-01 | 3 | -44/+42 | |
| | | | | | ||||||
| * | | | | Work in progress on writable encoding | Daniele Varrazzo | 2016-07-01 | 1 | -8/+44 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Would help using adapt(unicode) to quote strings without a connection, see ticket #331. Currently in heisenbug state: if test_connection_wins_anyway and test_encoding_default run (in this order), the latter fail because the returned value is "'\xe8 '", with an extra space. Skipping the first test, the second succeed. The bad value is returned by the libpq: ql = PQescapeString(to+eq+1, from, len); just returns len = 2 and an extra space in the string... meh. | |||||
| * | | | | Fix scattered grammar/spelling errors in comments, debug output, etc. | Greg Ward | 2016-06-30 | 1 | -1/+1 | |
| | | | | | ||||||
| * | | | | Skip null array test on Postgres versions not supporting it | Daniele Varrazzo | 2016-03-10 | 1 | -0/+1 | |
| | |_|/ | |/| | | ||||||
| * | | | Allow make_dsn to take no parameter | Daniele Varrazzo | 2016-03-03 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | The behaviour of connect() is unchanged: either dsn or params must be specified. | |||||
| * | | | Validate output result from make_dsn() | Daniele Varrazzo | 2016-03-03 | 2 | -42/+43 | |
| | | | | | | | | | | | | | | | | | | | | The output is not necessarily munged anyway: if no keyword is passed, validate the input but return it untouched. | |||||
| * | | | Test that the empty dsn is a valid make_dsn input | Daniele Varrazzo | 2016-03-03 | 1 | -0/+4 | |
| | | | | ||||||
| * | | | Added test suite specific for make_dsn | Daniele Varrazzo | 2016-03-03 | 1 | -35/+82 | |
| | | | | ||||||
| * | | | Verify that the dsn is not manipulated by make_dsn if not necessary | Daniele Varrazzo | 2016-03-03 | 1 | -12/+25 | |
| | | | | ||||||
| * | | | Implementation of make_dsn in Python | Daniele Varrazzo | 2016-03-03 | 1 | -18/+20 | |
| | | | | | | | | | | | | | | | | | | | | This is equivalent to what proposed in #363, but with a much simpler implementation. | |||||
| * | | | Fixed race condition on import in errorcodes.lookup | Daniele Varrazzo | 2015-12-16 | 2 | -0/+67 | |
| |/ / | | | | | | | | | | Fixes #382. | |||||
* | | | Added test with objects without length as callproc param | Daniele Varrazzo | 2015-12-12 | 1 | -0/+5 | |
| | | | ||||||
* | | | Raise TypeError if the dict in callproc param contains non-strings | Daniele Varrazzo | 2015-12-12 | 1 | -3/+3 | |
| | | | | | | | | | | | | | | | Check-and-conversion chain fixed and simplified. 'spname' was a reference leak. | |||||
* | | | callproc: tests, docs, and comment/error-reporting touchups. | mrmilosz | 2015-12-12 | 2 | -0/+60 | |
|/ / | ||||||
* | | Proper unicode handling in quote_ident. | Oleksandr Shulgin | 2015-10-15 | 1 | -1/+12 | |
| | | ||||||
* | | Add psycopg2.extensions.quote_ident. | Oleksandr Shulgin | 2015-10-14 | 1 | -0/+7 | |
|/ | ||||||
* | Drop spurious notices in test | Daniele Varrazzo | 2015-10-01 | 1 | -1/+2 | |
| | | | | Getting some "rehashing catalog" debug messages in PG 9.4 | |||||
* | Added unicode support to parse_dsn | Daniele Varrazzo | 2015-10-01 | 1 | -3/+23 | |
| | | | | Also added support for the argument as a keyword. | |||||
* | Fixed parse_dsn tests on Python 3 | Daniele Varrazzo | 2015-10-01 | 1 | -2/+2 | |
| | | | | On Python 3 there is no Exception.message attribute. | |||||
* | Separate parse_dsn test in a test case of their own | Daniele Varrazzo | 2015-10-01 | 1 | -0/+2 | |
| | ||||||
* | Merge branch 'master' into parse-dsn | Daniele Varrazzo | 2015-10-01 | 5 | -3/+132 | |
|\ | ||||||
| * | Report NotSupportedError for PGRES_COPY_BOTH and PGRES_SINGLE_TUPLE | Daniele Varrazzo | 2015-09-30 | 3 | -3/+40 | |
| | | | | | | | | Fixes #352. | |||||
| * | Allow connection.notices and notifies to be replaced. | Daniele Varrazzo | 2015-06-02 | 2 | -0/+58 | |
| | | | | | | | | Close #326 | |||||
| * | Fixed adaptation of lists of None | Daniele Varrazzo | 2015-06-02 | 1 | -0/+34 | |
| | | | | | | | | Note: lists of lists of None are not supported yet. | |||||
* | | Separate parse_dsn test on URI, for libpq >= 9.2 | Oleksandr Shulgin | 2015-06-02 | 1 | -5/+22 | |
| | | ||||||
* | | Merge branch 'master' into feature/parse-dsn | Oleksandr Shulgin | 2015-06-02 | 2 | -0/+46 | |
|\ \ | |/ | | | | | | | Conflicts: lib/extensions.py | |||||
| * | Add test for libpq_version | Oleksandr Shulgin | 2015-06-02 | 1 | -0/+9 | |
| | | ||||||
| * | Add libpq version discovery | Oleksandr Shulgin | 2015-06-01 | 1 | -0/+37 | |
| | | ||||||
* | | One more parse_dsn test for unquoted space | Oleksandr Shulgin | 2015-06-01 | 1 | -0/+3 | |
| | | ||||||
* | | Move parse_dsn to extensions, add tests | Oleksandr Shulgin | 2015-06-01 | 1 | -0/+31 | |
|/ | ||||||
* | Fix several typos | Hyunjun Kim | 2015-05-03 | 2 | -3/+4 | |
| | ||||||
* | More tests tweaks | Daniele Varrazzo | 2015-02-08 | 2 | -1/+2 | |
| | | | | | | Named cursors on old server versions have a different prefetch behaviour. This has hidden me the supported range of the 24:00 time format. Let's have another go at full testing... | |||||
* | Don't test date 24:00 before PG 8.4 | Daniele Varrazzo | 2015-02-08 | 1 | -1/+2 | |
| | ||||||
* | Allow pickling of cursor.description | Owen Raccuglia | 2015-02-08 | 1 | -0/+11 | |
| | | | | | | | | | This is for people using dtuple.py; a dtuple.DatabaseTuple instance keeps a reference to cursor.description, which is not picklable because psycopg2 doesn't export the Column namedtuple it uses. This commit exports the Column namedtuple, and includes a test to verify the pickle/unpickle works after exporting Column. |