summaryrefslogtreecommitdiff
path: root/psycopg
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into errors-moduleerrors-moduleDaniele Varrazzo2018-10-1510-122/+551
|\
| * Fixed refcount in connection's readonly and deferrable gettersfix-790Daniele Varrazzo2018-10-121-0/+2
| | | | | | | | Close #790
| * Added table_oid, table_column on cursor.description itemsdescription-extra-attrsDaniele Varrazzo2018-10-113-5/+44
| | | | | | | | Close #661
| * Added C implementation for a Column typeDaniele Varrazzo2018-10-114-96/+420
| | | | | | | | Currently behaving exactly like the previous (named)tuple.
| * Fixed infinite loop in pq_get_last_result after COPYDaniele Varrazzo2018-10-101-3/+8
| | | | | | | | | | | | | | 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-102-2/+34
| |\
| | * Merge branch 'conn-get-host'Daniele Varrazzo2018-10-101-0/+22
| | |\
| | | * Added connection.hostMarco De Paoli2018-10-061-0/+22
| | | | | | | | | | | | | | | | Return the server host name of the current connect.
| | * | Added Diagnostics.severity_nonlocalized attributediag-schema-name-nonlocDaniele Varrazzo2018-10-041-2/+12
| | |/ | | | | | | | | | Close #783.
| * | Prefer https:// URLs when availableJon Dufresne2018-09-224-5/+5
| |/
| * Remove obsolete and incorrect FreeBSD version conditionDmitry Marakasov2018-09-071-2/+1
| | | | | | | | The FreeBSD-related condition which enables custom round() implementation is incorrect: one must include <sys/param.h> to get __FreeBSD_version value, and since it's not included here, the check succeeds while it shouldn't. Before it worked somehow, but since python 3.7 it results in conflicting declarations of round(). The condition is also no longer needed since FreeBSD 5.3 is unsupported for 12 years.
| * Fixed compile error on windowsfix-746Daniele Varrazzo2018-07-241-10/+9
| | | | | | | | | | | | | | Because const int + 1 is not const, right??? Also fixed other occurrences of magic numbers and failed DRY around PyOS_snprintf() calls.
| * Close named cursor if exist, even if we didn't run executeDaniele Varrazzo2018-07-241-9/+38
| | | | | | | | Close #746
* | Generating the whole errors file from scriptDaniele Varrazzo2018-08-171-0/+4
| |
* | Read exceptions to raise from a Python moduleDaniele Varrazzo2018-08-171-0/+40
|/
* Fixed refcount handling in encrypt_passwordDaniele Varrazzo2018-05-201-9/+8
| | | | | | 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-1/+1
|
* Fixed code flow in encrypt_password()Daniele Varrazzo2018-05-201-56/+55
| | | | | | | | 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-203-38/+98
|\
| * Merge branch 'fix-716'Daniele Varrazzo2018-05-201-6/+12
| |\
| | * Don't raise an exception closing an unused named cursorfix-716Daniele Varrazzo2018-05-201-6/+12
| | | | | | | | | | | | Close #716
| * | Raise NotSupportedError fetching iso_8601 intervalsDaniele Varrazzo2018-05-201-0/+5
| |/ | | | | | | | | | | Previously it would have failed parsing and resulted in ValueError Close #707
| * Fixed adaptation of arrays of arrays of nullsDaniele Varrazzo2018-05-181-32/+81
| | | | | | | | Close #325, close #706.
* | Fixed the string format error reported by Travis-CI.Ashesh Vashi2018-05-081-3/+1
| | | | | | | | Reference: https://travis-ci.org/psycopg/psycopg2/jobs/376288585
* | Merge branch 'master' into masterAshesh Vashi2018-05-0815-51/+164
|\ \ | |/
| * Allow strings subclasses in ensure_bytesfix-679Daniele Varrazzo2018-02-211-2/+2
| | | | | | | | Fix #679
| * Avoid quoting the string in the psycopg version macroDaniele Varrazzo2018-02-191-2/+6
| | | | | | | | | | | | | | Use a macro trick to add the quotes. This seems more portable than passing the quotes to the command line (see #658). https://gcc.gnu.org/onlinedocs/cpp/Stringizing.html
| * Fixed building on SmartOSMike Gerdts2018-02-192-1/+7
| | | | | | | | | | timeradd is missing on Solaris 10, but is present as a macro in <sys/time.h> on SmartOS, illumos, and likely Solaris 11.
| * Autocommit shouldn't change deferrable on servers not supporting itDaniele Varrazzo2018-02-081-2/+2
| | | | | | | | Regression on unsupported Postgres versions after fixing bug #580
| * Fixed idempotence check changing connection characteristicsDaniele Varrazzo2018-01-112-22/+36
| |
| * 'cursor.mogrify()' can be called on closed cursorsmogrify-on-closed-cursorDaniele Varrazzo2018-01-111-2/+0
| | | | | | | | Fix #579.
| * Merge branch 'macro-accessors'Daniele Varrazzo2018-01-102-2/+9
| |\
| | * Moved datatime compatibility macros with othersDaniele Varrazzo2018-01-102-6/+5
| | |
| | * define a "polyfill" inline for python 2 compatibilityGlyph2017-12-121-0/+6
| | |
| | * use accessor macros for pypy3 compatibilityGlyph2017-12-121-2/+4
| | |
| * | Fix typo in comment in utils.cRonan Amicel2017-12-141-1/+1
| |/
| * Trim trailing whitespace from all files throughout projectJon Dufresne2017-12-015-6/+0
| | | | | | | | | | | | Many editors automatically trim whitespace on save. By trimming all files in one go, makes future diffs cleaner without extraneous whitespace changes.
| * Collect rowcount in executemany even when discarding resultsDaniele Varrazzo2017-11-291-1/+2
| | | | | | | | Closes #633.
| * Add news and update version checkHugo2017-11-281-2/+4
| |
| * Drop support for EOL Python 2.6Hugo2017-11-281-10/+2
| |
| * Merge branch 'solaris-support'Daniele Varrazzo2017-11-283-0/+95
| |\
| | * Emulate timeradd and timersub on SolarisMy Karlsson2017-10-263-0/+95
| | | | | | | | | | | | | | | Solaris does not have timeradd and timersub. Add solaris_support.c which provides emulated versions of them on Solaris.
| * | Don't cast point arrays to float arrays (fixes: #613)Federico Di Gregorio2017-11-161-1/+1
| |/
* | Moving the encrypt_password method from the connection class to theAshesh Vashi2017-09-142-70/+105
| | | | | | | | | | psycopgmodule, and exported it from psycopg2.extensions as per review comments.
* | Merge remote-tracking branch 'psycopg2/master'Ashesh Vashi2017-09-112-0/+2
|\ \ | |/
| * Added back timestamptz[] default castfix-578Daniele Varrazzo2017-07-242-0/+2
| | | | | | | | | | | | | | | | | | | | It was registered as side effect of an excessive definition that got cleaned up in 338dbe70a6c78c7edddea985e2386ebd864378c6. Looking at other removed redundant type oids, this was the only one missing from the `string_types` map. Close #578.
* | Using 'Text_FromUTF8' macro for transforming the encrypted C string toAshesh Vashi2017-07-171-4/+5
| | | | | | | | Python string to make it Python 3 compatible.
* | Added support for preparing the encrypted password of a PostgreSQLAshesh Vashi2017-07-171-0/+69
|/ | | | | password using the libpq functions - 'PQencryptPasswordConn', and 'PQencryptPassword'.
* Accept Composable in start_replication_expert()Daniele Varrazzo2017-06-174-86/+97
| | | | Close #554
* Fixed parsing interval from micros on 32 bitDaniele Varrazzo2017-06-171-2/+1
| | | | Using integers the wrong size. Faithfully segfaulting since 1970.