summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | Fix async replication and test.Oleksandr Shulgin2015-10-154-66/+143
| | | | | |
| | * | | | Use quote_ident from psycopg2.extensionsOleksandr Shulgin2015-10-151-0/+14
| | | | | |
| | * | | | Merge branch 'master' into feature/replication-protocolOleksandr Shulgin2015-10-151-1/+19
| | |\ \ \ \ | | | |/ / /
| | * | | | Update stop_repl, require replication consumer to be a callable.Oleksandr Shulgin2015-10-141-1/+5
| | | | | |
| | * | | | Fix stop_replication: always raise outside the loop.Oleksandr Shulgin2015-10-141-0/+12
| | | | | |
| | * | | | Fix ReplicationTest: no NotSupportedError now.Oleksandr Shulgin2015-10-142-8/+14
| | | | | |
| * | | | | Merge branch 'master' into nul-terminatorDaniele Varrazzo2016-08-071-0/+7
| |\ \ \ \ \
| | * | | | | Make Range pickleableJonathan Ross Rogers2016-08-071-0/+7
| | | |_|_|/ | | |/| | |
| * | | | | Throw an exception when a NUL character is used as a parameter.Alexander Schrijver2016-07-181-0/+9
| |/ / / /
| * | | | Merge branch 'conn-get-parameters'Daniele Varrazzo2016-07-011-0/+7
| |\ \ \ \
| | * | | | Add skip_before_libpq for test_get_dsn_parametersOleksandr Shulgin2015-10-301-0/+1
| | | | | |
| | * | | | Fix typo in a new test nameOleksandr Shulgin2015-10-301-1/+1
| | | | | |
| | * | | | Add connection.get_dsn_parameters()Oleksandr Shulgin2015-10-301-0/+6
| | | |/ / | | |/| |
| * | | | Allow adapting bytes using QuotedString on Python 3 tooDaniele Varrazzo2016-07-011-3/+12
| | | | | | | | | | | | | | | | | | | | Close #365.
| * | | | Fixed encoding tests on Py3Daniele Varrazzo2016-07-011-3/+3
| | | | |
| * | | | Don't hope to encode stuff in an arbitrary encodingDaniele Varrazzo2016-07-011-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 problemDaniele Varrazzo2016-07-013-44/+42
| | | | |
| * | | | Work in progress on writable encodingDaniele Varrazzo2016-07-011-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 Ward2016-06-301-1/+1
| | | | |
| * | | | Skip null array test on Postgres versions not supporting itDaniele Varrazzo2016-03-101-0/+1
| | |_|/ | |/| |
| * | | Allow make_dsn to take no parameterDaniele Varrazzo2016-03-031-2/+2
| | | | | | | | | | | | | | | | | | | | The behaviour of connect() is unchanged: either dsn or params must be specified.
| * | | Validate output result from make_dsn()Daniele Varrazzo2016-03-032-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 inputDaniele Varrazzo2016-03-031-0/+4
| | | |
| * | | Added test suite specific for make_dsnDaniele Varrazzo2016-03-031-35/+82
| | | |
| * | | Verify that the dsn is not manipulated by make_dsn if not necessaryDaniele Varrazzo2016-03-031-12/+25
| | | |
| * | | Implementation of make_dsn in PythonDaniele Varrazzo2016-03-031-18/+20
| | | | | | | | | | | | | | | | | | | | This is equivalent to what proposed in #363, but with a much simpler implementation.
| * | | Fixed race condition on import in errorcodes.lookupDaniele Varrazzo2015-12-162-0/+67
| |/ / | | | | | | | | | Fixes #382.
* | | Added test with objects without length as callproc paramDaniele Varrazzo2015-12-121-0/+5
| | |
* | | Raise TypeError if the dict in callproc param contains non-stringsDaniele Varrazzo2015-12-121-3/+3
| | | | | | | | | | | | | | | Check-and-conversion chain fixed and simplified. 'spname' was a reference leak.
* | | callproc: tests, docs, and comment/error-reporting touchups.mrmilosz2015-12-122-0/+60
|/ /
* | Proper unicode handling in quote_ident.Oleksandr Shulgin2015-10-151-1/+12
| |
* | Add psycopg2.extensions.quote_ident.Oleksandr Shulgin2015-10-141-0/+7
|/
* Drop spurious notices in testDaniele Varrazzo2015-10-011-1/+2
| | | | Getting some "rehashing catalog" debug messages in PG 9.4
* Added unicode support to parse_dsnDaniele Varrazzo2015-10-011-3/+23
| | | | Also added support for the argument as a keyword.
* Fixed parse_dsn tests on Python 3Daniele Varrazzo2015-10-011-2/+2
| | | | On Python 3 there is no Exception.message attribute.
* Separate parse_dsn test in a test case of their ownDaniele Varrazzo2015-10-011-0/+2
|
* Merge branch 'master' into parse-dsnDaniele Varrazzo2015-10-015-3/+132
|\
| * Report NotSupportedError for PGRES_COPY_BOTH and PGRES_SINGLE_TUPLEDaniele Varrazzo2015-09-303-3/+40
| | | | | | | | Fixes #352.
| * Allow connection.notices and notifies to be replaced.Daniele Varrazzo2015-06-022-0/+58
| | | | | | | | Close #326
| * Fixed adaptation of lists of NoneDaniele Varrazzo2015-06-021-0/+34
| | | | | | | | Note: lists of lists of None are not supported yet.
* | Separate parse_dsn test on URI, for libpq >= 9.2Oleksandr Shulgin2015-06-021-5/+22
| |
* | Merge branch 'master' into feature/parse-dsnOleksandr Shulgin2015-06-022-0/+46
|\ \ | |/ | | | | | | Conflicts: lib/extensions.py
| * Add test for libpq_versionOleksandr Shulgin2015-06-021-0/+9
| |
| * Add libpq version discoveryOleksandr Shulgin2015-06-011-0/+37
| |
* | One more parse_dsn test for unquoted spaceOleksandr Shulgin2015-06-011-0/+3
| |
* | Move parse_dsn to extensions, add testsOleksandr Shulgin2015-06-011-0/+31
|/
* Fix several typosHyunjun Kim2015-05-032-3/+4
|
* More tests tweaksDaniele Varrazzo2015-02-082-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.4Daniele Varrazzo2015-02-081-1/+2
|
* Allow pickling of cursor.descriptionOwen Raccuglia2015-02-081-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.