Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [test_basic_types] Add test for array[%s] on NULL arrays | Ion Alberdi | 2022-10-11 | 1 | -0/+2 |
| | | | | Add test to verifity the fix for #1507. | ||||
* | test: adapt ssl test to libpq 15 | Daniele Varrazzo | 2022-10-06 | 1 | -0/+5 |
| | | | | | See #1506, PostgreSQL bug 17625 (https://www.postgresql.org/message-id/17625-fc47c78b7d71b534%40postgresql.org) | ||||
* | test: add test to verify register_range() with names requiring escape | Daniele Varrazzo | 2022-10-06 | 1 | -0/+16 |
| | | | | Unlike for register_composite(), this works already. | ||||
* | fix: look up for range types defined in schemas in the search path | Daniele Varrazzo | 2022-10-06 | 1 | -1/+18 |
| | |||||
* | fix: correctly handle composites with names or schema requiring escape | Daniele Varrazzo | 2022-10-06 | 1 | -11/+23 |
| | |||||
* | fix: handle types in the search path in register_composite() | Daniele Varrazzo | 2022-10-06 | 1 | -0/+43 |
| | | | | Fix #1487. | ||||
* | Merge branch 'build-macos-arm64' | Daniele Varrazzo | 2022-07-28 | 1 | -0/+6 |
|\ | |||||
| * | test: drop test table if exist | Daniele Varrazzo | 2022-07-16 | 1 | -0/+6 |
| | | | | | | | | It might be a residue of a psycopg 3 test run in the same db. | ||||
* | | Unskip tests that work on CockroachDB v22.1 | Rafi Shamim | 2022-03-28 | 6 | -21/+29 |
|/ | | | | CockroachDB supports named cursors in v22.1, so more tests pass. | ||||
* | Raise an error for dates > 10K instead of returning Y9999 | Daniele Varrazzo | 2021-11-11 | 1 | -0/+14 |
| | | | | Close #1307. | ||||
* | Fix representation of sql.Placeholder2_9_1 | Daniele Varrazzo | 2021-06-17 | 1 | -16/+12 |
| | | | | | Fix also Placeholder tests, including an error which made an assert always true, which made us miss the regression in #1291. | ||||
* | Fix regression with named `sql.Placeholder` | Daniele Varrazzo | 2021-06-16 | 1 | -0/+4 |
| | | | | Close #1291. | ||||
* | Copyright year updated to 2021 | Daniele Varrazzo | 2021-06-15 | 27 | -27/+27 |
| | | | | | ag -l Copyright | xargs sed -i \ "s/\(.*copyright (C) [0-9]\+\)\(-[0-9]\+\)\?\(.*Psycopg Team.*\)/\1-$(date +%Y)\3/I" | ||||
* | Deprecate the psycopg2.tz module | Daniele Varrazzo | 2021-06-15 | 2 | -16/+15 |
| | | | | | Don't use its objects anymore in the tests (except for the tests for the objects themselves). | ||||
* | Use datetime.timezone as default tzinfo_factory. | Daniele Varrazzo | 2021-06-15 | 1 | -1/+17 |
| | |||||
* | Drop support for mx.DateTime objects | Daniele Varrazzo | 2021-06-14 | 1 | -169/+0 |
| | | | | They are Python 2 only. | ||||
* | Handle correctly timestamps with fractions of minute in the timezone offset | Daniele Varrazzo | 2021-06-14 | 1 | -25/+56 |
| | | | | Close #1272. | ||||
* | Allow libpq tests to fail | Daniele Varrazzo | 2021-05-26 | 1 | -1/+4 |
| | | | | They fail on image build when we delete the system library. | ||||
* | Escape table and column names in cursor.copy_from() and .copy_to() | Daniele Varrazzo | 2021-05-25 | 1 | -0/+18 |
| | |||||
* | 'with' starts a transaction even on autocommit connections | Daniele Varrazzo | 2021-05-24 | 1 | -0/+87 |
| | | | | Close #941 | ||||
* | Unbreak f-string wrong replacements | Daniele Varrazzo | 2021-05-20 | 1 | -29/+33 |
| | |||||
* | Merge branch 'master' into rm-2.7 | Daniele Varrazzo | 2021-05-20 | 5 | -8/+31 |
|\ | |||||
| * | Fix segfault initialising Column object manually | Daniele Varrazzo | 2021-05-20 | 1 | -0/+10 |
| | | | | | | | | Close #1252 | ||||
| * | Accept no param in connect() | Daniele Varrazzo | 2021-05-20 | 1 | -5/+15 |
| | | | | | | | | | | | | More friendly towards ``connect(**parse_dsn())``, and what psycopg3 does. Close #1250 | ||||
| * | docs: fix a few simple typos | Tim Gates | 2021-05-20 | 2 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are small typos in: - doc/src/faq.rst - psycopg/cursor_type.c - psycopg/xid_type.c - scripts/make_errorcodes.py - scripts/make_errors.py - tests/dbapi20.py - tests/test_connection.py Fixes: - Should read `publicly` rather than `publically`. - Should read `unicode` rather than `uniconde`. - Should read `supposed` rather than `suppsed`. - Should read `something` rather than `somenthing`. - Should read `portable` rather than `portible`. - Should read `exhausted` rather than `exausted`. - Should read `compliance` rather than `compiliance`. Closes #1275 | ||||
| * | Skip test_encrypt_server for CockroachDB | Rafi Shamim | 2021-04-21 | 2 | -0/+2 |
| | | |||||
| * | Skip test_9_6_diagnostics test for CRDB | arulajmani | 2020-12-16 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | Previously, the CRDB's pg server version was 9.5, which meant this test wasn't run as it is skipped for versions 9.6 and before. Now that the server version of CRDB is 13, this check no longer applies. This patch explicitly skips test_9_6_diagnostics for CRDB. The reason for this is the same as test_9_3_diagnostics, which is currently skipped for CRDB. | ||||
* | | Merge branch 'master' into rm-2.7 | Hugo van Kemenade | 2020-11-18 | 1 | -0/+7 |
|\ \ | |/ | |||||
| * | Classify connection exceptions as operational errors to better conform with ↵ | Justas Sadzevicius | 2020-11-17 | 1 | -0/+7 |
| | | | | | | | | PEP 249 | ||||
* | | Upgrade f-strings with flynt -a and remove int() | Hugo van Kemenade | 2020-11-18 | 4 | -4/+4 |
| | | |||||
* | | Upgrade f-strings with flynt | Hugo van Kemenade | 2020-11-17 | 15 | -91/+78 |
| | | |||||
* | | Drop support for EOL Python 2.7 | Hugo van Kemenade | 2020-11-17 | 1 | -224/+0 |
| | | |||||
* | | Upgrade Python syntax with pyupgrade --py36-plus | Hugo van Kemenade | 2020-11-17 | 22 | -105/+101 |
| | | |||||
* | | Drop support for EOL Python 2.7 | Hugo van Kemenade | 2020-11-17 | 11 | -358/+72 |
|/ | |||||
* | 'cursor.query' reports the query of the last COPY opearation too | Daniele Varrazzo | 2020-09-05 | 1 | -0/+22 |
| | | | | Close #1141. | ||||
* | Added duplicate values to errcodes module | Daniele Varrazzo | 2020-09-05 | 1 | -0/+8 |
| | | | | Close #1133 | ||||
* | Python 2 compatibilitycockroachdb-tests | Daniele Varrazzo | 2020-08-17 | 1 | -2/+2 |
| | |||||
* | Added possibility to skip a test only on certain crdb versions | Daniele Varrazzo | 2020-08-17 | 1 | -4/+27 |
| | |||||
* | Added ticket numbers for the tests skipped on crdb | Daniele Varrazzo | 2020-08-17 | 1 | -0/+27 |
| | |||||
* | Added missing reasons for crdb skip | Daniele Varrazzo | 2020-08-17 | 3 | -7/+10 |
| | | | | Added check to make sure a reason must be passed. | ||||
* | Added reason for skipping on CockroachDB | Daniele Varrazzo | 2020-07-27 | 19 | -89/+97 |
| | |||||
* | Types tests adapted to CockroachDB | Daniele Varrazzo | 2020-07-23 | 2 | -14/+29 |
| | |||||
* | Several other tests skipped for CockroachDB | Daniele Varrazzo | 2020-07-22 | 9 | -14/+34 |
| | | | | The only remaining test modules in this branch are test_types_basic/extra. | ||||
* | Some extra cursors test skipped on CockroachDB | Daniele Varrazzo | 2020-07-22 | 2 | -3/+21 |
| | | | | Skip named cursor tests | ||||
* | Skip a few date tests on CockroachDB | Daniele Varrazzo | 2020-07-22 | 1 | -1/+4 |
| | | | | | | - Infinity gets converted to large dates in the past/future out of Python range - Timestamps get an UTC timezone attached | ||||
* | Cursor tests adapted to CockroachDB | Daniele Varrazzo | 2020-07-21 | 1 | -223/+231 |
| | | | | Named cursor tests separated to skip all in one go | ||||
* | Get CockroachDB version from the connection info | Daniele Varrazzo | 2020-07-21 | 1 | -14/+11 |
| | |||||
* | Skip copy tests on CockroachDB | Daniele Varrazzo | 2020-07-21 | 1 | -1/+5 |
| | |||||
* | Skip connection tests which cannot pass on CockroachDB | Daniele Varrazzo | 2020-07-21 | 2 | -1/+36 |
| | | | | | | | | | | | Features not supported seem: - isolation level (always serializable) - client encodings - notices (maybe there is a way to generate them) - 2 phase commit - reset (because of the lack of transaction deferrable) - backend pid | ||||
* | Expose libpq PG* vars as testconfig content | Daniele Varrazzo | 2020-07-21 | 1 | -4/+4 |
| |