summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into errors-moduleerrors-moduleDaniele Varrazzo2018-10-1511-70/+203
|\
| * Fixed refcount in connection's readonly and deferrable gettersfix-790Daniele Varrazzo2018-10-121-0/+8
| | | | | | | | Close #790
| * Added table_oid, table_column on cursor.description itemsdescription-extra-attrsDaniele Varrazzo2018-10-111-1/+22
| | | | | | | | Close #661
| * Fixed infinite loop in pq_get_last_result after COPYDaniele Varrazzo2018-10-102-1/+13
| | | | | | | | | | | | | | There will be an error downstream but we have to get out of this function first. Close #781
| * Merge branch 'master' into httpsDaniele Varrazzo2018-10-105-9/+97
| |\
| | * Merge branch 'conn-get-host'Daniele Varrazzo2018-10-101-1/+14
| | |\
| | | * Added connection.hostMarco De Paoli2018-10-061-1/+14
| | | | | | | | | | | | | | | | Return the server host name of the current connect.
| | * | Merge remote-tracking branch 'origin/diag-schema-name-nonloc'Daniele Varrazzo2018-10-101-2/+11
| | |\ \
| | | * | Added Diagnostics.severity_nonlocalized attributediag-schema-name-nonlocDaniele Varrazzo2018-10-041-2/+11
| | | |/ | | | | | | | | | | | | Close #783.
| | * | Commented out test to avoid beaking masterFederico Di Gregorio2018-10-101-3/+3
| | | |
| | * | Fixed test for issue #788Federico Di Gregorio2018-10-101-1/+1
| | | |
| | * | Added test for issue #788Federico Di Gregorio2018-10-101-0/+4
| | |/
| | * sql.Identifier can wrap a sequence of strings to represent qualified namesidentifier-sequenceDaniele Varrazzo2018-10-041-6/+22
| | | | | | | | | | | | Close #732.
| | * Implement __str__ for range typesMichel Albert2018-09-301-0/+46
| | |
| * | Prefer https:// URLs when availableJon Dufresne2018-09-223-4/+4
| |/
| * Better testing of encryption function with libpq < 10encrypt-password-fix-testsDaniele Varrazzo2018-08-171-53/+44
| |
| * Bump tests for selective closure of named cursor to pg 8.2Daniele Varrazzo2018-07-242-2/+2
| | | | | | | | | | Previous versions don't support the features as they don't have the pg_cursors view. But they are too old to care.
| * Close named cursor if exist, even if we didn't run executeDaniele Varrazzo2018-07-241-0/+13
| | | | | | | | Close #746
* | Added errors.lookup() functionDaniele Varrazzo2018-10-151-0/+8
| |
* | Read exceptions to raise from a Python moduleDaniele Varrazzo2018-08-172-0/+64
|/
* DictCursor and RealDictCursor rows maintain columns orderDaniele Varrazzo2018-05-211-2/+63
| | | | Close #177.
* Merge branch 'master' into drop-2to3Daniele Varrazzo2018-05-207-86/+325
|\
| * Added tests to verify iter methods on dict cursorsDaniele Varrazzo2018-05-201-1/+64
| | | | | | | | ISTM the refactoring in #648 broke something
| * DictCursor/RealDictCursor tests splitDaniele Varrazzo2018-05-201-78/+82
| |
| * Fixed refcount handling in encrypt_passwordDaniele Varrazzo2018-05-201-0/+11
| | | | | | | | | | | | Added tests to check bad types, which discovered the above problem: on type error we would have decref'd on exit something that was only borrowed (because we wouldn't have performed matching increfs).
| * Fixed keywords support for encrypt_password and tests completedDaniele Varrazzo2018-05-201-2/+28
| |
| * Fixed code flow in encrypt_password()Daniele Varrazzo2018-05-201-14/+14
| | | | | | | | | | | | | | | | Fixed several shortcomings highlighted in #576 and not fixed as requested. Also fixed broken behaviour of ignoring the algorithm if the connection is missing.
| * Merge branch 'master' into encrypt-passDaniele Varrazzo2018-05-206-11/+52
| |\
| | * Merge branch 'fix-716'Daniele Varrazzo2018-05-202-1/+11
| | |\
| | | * Don't raise an exception closing an unused named cursorfix-716Daniele Varrazzo2018-05-202-1/+11
| | | | | | | | | | | | | | | | Close #716
| | * | Set minimal postgres version for intervalstyle testfix-707Daniele Varrazzo2018-05-201-0/+1
| | | |
| | * | Raise NotSupportedError fetching iso_8601 intervalsDaniele Varrazzo2018-05-201-0/+7
| | |/ | | | | | | | | | | | | | | | Previously it would have failed parsing and resulted in ValueError Close #707
| | * Merge remote-tracking branch 'nested-array-nulls'Daniele Varrazzo2018-05-202-9/+24
| | |\
| | | * Hstore test fixed after adapting arrays dropped space after commasnested-array-nullsDaniele Varrazzo2018-05-181-2/+2
| | | |
| | | * Fixed adaptation of arrays of arrays of nullsDaniele Varrazzo2018-05-181-7/+22
| | | | | | | | | | | | | | | | Close #325, close #706.
| | * | Skipped test on db version not supporting unicode identifiersfix-211Daniele Varrazzo2018-05-181-0/+1
| | | |
| | * | Allow non-ascii chars in namedtuple fieldsDaniele Varrazzo2018-05-181-1/+8
| | |/ | | | | | | | | | | | | | | | | | | They can be valid chars in Python 3. Or maybe not? In which case Python will throw an exception, but that's fine. Fix regression introduced fixing #211
| * | Merge branch 'master' into masterAshesh Vashi2018-05-0827-414/+284
| |\ \ | | |/
| | * Allow strings subclasses in ensure_bytesfix-679Daniele Varrazzo2018-02-211-0/+14
| | | | | | | | | | | | Fix #679
| | * Convert fields names into valid Python identifiers in NamedTupleCursorDaniele Varrazzo2018-01-291-0/+8
| | | | | | | | | | | | Close #211.
| | * Silence warning on import failing a testDaniele Varrazzo2018-01-291-1/+5
| | |
| | * Fixed idempotence check changing connection characteristicsDaniele Varrazzo2018-01-111-0/+10
| | |
| | * Merge branch 'mogrify-on-closed-cursor'Daniele Varrazzo2018-01-111-0/+6
| | |\
| | | * 'cursor.mogrify()' can be called on closed cursorsmogrify-on-closed-cursorDaniele Varrazzo2018-01-111-0/+6
| | | | | | | | | | | | | | | | Fix #579.
| | * | Fixed test in asian time zonesDaniele Varrazzo2018-01-101-1/+2
| | |/ | | | | | | | | | Fix #652
| * | Moving the encrypt_password method from the connection class to theAshesh Vashi2017-09-141-7/+10
| | | | | | | | | | | | | | | psycopgmodule, and exported it from psycopg2.extensions as per review comments.
| * | Merge remote-tracking branch 'psycopg2/master'Ashesh Vashi2017-09-113-4/+12
| |\ \
| * | | 'encrypt_password' raises 'psycopg2.NotSupportedErorr' exception forAshesh Vashi2017-07-171-10/+4
| | | | | | | | | | | | | | | | | | | | server version >= 10, when compiled using libpq version < 10, when no algorithm is specified.
| * | | When compiled with libpq version < 10, it raises ↵Ashesh Vashi2017-07-171-1/+1
| | | | | | | | | | | | | | | | 'psycopg2.NotSupportedError' (not, psycopg2.ProgrammingError).
| * | | Added support for preparing the encrypted password of a PostgreSQLAshesh Vashi2017-07-171-1/+55
| | | | | | | | | | | | | | | | | | | | password using the libpq functions - 'PQencryptPasswordConn', and 'PQencryptPassword'.