Daniele Varrazzo
5010a65d77
Another url changed to https
...
Added after this MR.
2018-10-10 22:15:45 +01:00
Daniele Varrazzo
9148157697
Merge branch 'master' into https
2018-10-10 22:07:33 +01:00
Daniele Varrazzo
2e823273d6
Merge pull request #789 from jdufresne/argparse
...
Replace deprecated optparse usage with argparse
2018-10-10 22:05:16 +01:00
Daniele Varrazzo
cd9d74c462
Merge branch 'conn-get-host'
2018-10-10 22:03:36 +01:00
Daniele Varrazzo
382eeccab8
Small tweaks to connection.host docs
2018-10-10 22:02:20 +01:00
Daniele Varrazzo
f5f6b420b2
Merge remote-tracking branch 'origin/diag-schema-name-nonloc'
2018-10-10 21:46:51 +01:00
Jon Dufresne
488818eeb6
Replace deprecated optparse usage with argparse
...
Per https://docs.python.org/3/library/optparse.html
> Deprecated since version 3.2: The optparse module is deprecated and
> will not be developed further; development will continue with the
> argparse module.
2018-10-10 05:15:57 -07:00
Federico Di Gregorio
296c80d1f2
Commented out test to avoid beaking master
2018-10-10 11:05:02 +02:00
Federico Di Gregorio
1fe9f1ac5b
Fixed test for issue #788
2018-10-10 09:35:18 +02:00
Federico Di Gregorio
ebcfbe03f9
Added test for issue #788
2018-10-10 09:14:56 +02:00
Federico Di Gregorio
7806fc736a
Sandbox removed
...
The sandbox directory was there to test issues before we had full test
coverage and to try quick and dirty Python snippets before moving them to
the examples directory, sending them to mailing list or copying them to
the docs. Almost anything that was in sandbox is now in the examples
directory or has been refactored into a full test, or is so old that is
of no use anymore. So, adieu sandbox.
2018-10-09 00:00:12 +02:00
Federico Di Gregorio
e3c791cf60
Merge pull request #786 from alandmoore/master
...
Add documentation about the use of backslashes with LIKE
2018-10-08 23:50:33 +02:00
Alan D Moore
20647b7bcc
Fix RST markup
2018-10-08 09:40:51 -05:00
Alan D Moore
67b94d0797
Added note about backslashes and LIKE
...
Added note about the use of LIKE with strings containing
backslashes. Addresses concern in issue #785 .
2018-10-08 09:36:16 -05:00
Federico Di Gregorio
f56392a245
Allow SPHINXBUILD on command line
2018-10-07 13:55:11 +02:00
Federico Di Gregorio
81addddaee
Added connection.get_native_connection()
2018-10-07 13:54:24 +02:00
Marco De Paoli
1c553bb703
Added connection.host
...
Return the server host name of the current connect.
2018-10-06 15:19:01 +02:00
Daniele Varrazzo
4e0b2ec9c9
Added Diagnostics.severity_nonlocalized attribute
...
Close #783 .
2018-10-04 16:13:46 +01:00
Daniele Varrazzo
9d83b03605
Merge branch 'identifier-sequence'
2018-10-04 13:22:46 +01:00
Daniele Varrazzo
4aa02b7855
sql.Identifier can wrap a sequence of strings to represent qualified names
...
Close #732 .
2018-10-04 12:46:10 +01:00
Daniele Varrazzo
695c757dc3
Merge branch 'stringification-of-ranges'
2018-10-04 12:24:27 +01:00
Daniele Varrazzo
81d6f7a7ca
Mention the better str(Range) in the docs.
2018-10-04 11:57:31 +01:00
Daniele Varrazzo
8bd7ad7bb5
Faster check for empty range in str()
2018-10-04 11:46:07 +01:00
Michel Albert
d317977205
Implement __str__ for range types
2018-09-30 10:15:55 +02:00
Federico Di Gregorio
ccae5cae34
Expose PGconn* raw pointer on the connection as a PyCapsule
2018-09-27 10:15:40 +02:00
Jon Dufresne
b07e34e0b8
Prefer https:// URLs when available
2018-09-22 19:02:33 -07:00
Jon Dufresne
9405d8cbc5
Drop legacy distutils in setup.py
...
distutils is not recommended for use and unnecessary for modern Python
environments. Use only setuptools instead. From
https://docs.python.org/3/library/distutils.html :
> Most Python users will not want to use this module directly, but
> instead use the cross-version tools maintained by the Python Packaging
> Authority. In particular, setuptools is an enhanced alternative to
> distutils ...
>
> The recommended pip installer runs all setup.py scripts with
> setuptools, even if the script itself only imports distutils. Refer to
> the Python Packaging User Guide for more information.
2018-09-15 16:05:05 -07:00
Daniele Varrazzo
6b6b1a6e8d
Merge branch 'fix-bsd'
2018-09-07 23:58:19 +01:00
Daniele Varrazzo
0eaa0c9d4e
Mention FreeBSD build fixed in news file
2018-09-07 23:57:34 +01:00
Dmitry Marakasov
5ec573c83b
Remove obsolete and incorrect FreeBSD version condition
...
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.
2018-09-07 23:57:33 +01:00
Daniel Hahler
6af55ee51c
Improve doc for extras.wait_select
2018-09-05 16:45:33 +01:00
Andrew King
03fc3f9a2a
Fix typo in install.rst
2018-09-05 16:42:59 +01:00
Jon Dufresne
c57fee2c92
Update intersphinx URLs to point to Python 3 docs
...
Python 3 docs are more up to date and reflect the future of Python.
Removed unused py3 marker.
2018-09-05 16:21:14 +01:00
Benjamin Peterson
f86229d98b
Remove setup.py fallback that assumes postgres 7.4.0.
...
pyscopg2 only supports postgres >= 9.1 these days. Thus, taking this fallback will only lead to failure later down the line.
2018-09-05 16:18:18 +01:00
Daniele Varrazzo
344ce15261
Better testing of encryption function with libpq < 10
2018-08-17 02:09:22 +01:00
Daniele Varrazzo
782fa39647
Generating the whole errors file from script
2018-08-17 02:00:40 +01:00
Daniele Varrazzo
0bce58d0cd
Dropped parsing sgml files for error codes
...
The errcodes.txt file contains all the errors for the currently
maintained server versions. There is only one error code missing,
probably unused, but adding it back anyway to keep the errcode module
unchanged.
2018-08-17 02:00:40 +01:00
Daniele Varrazzo
ce1ac3aea9
Read exceptions to raise from a Python module
2018-08-17 02:00:01 +01:00
Daniele Varrazzo
153b0983c1
Merge branch 'fix-746'
2018-07-25 16:29:57 +01:00
Daniele Varrazzo
97a4fb92c6
Fixed compile error on windows
...
Because const int + 1 is not const, right???
Also fixed other occurrences of magic numbers and failed DRY around
PyOS_snprintf() calls.
2018-07-24 21:16:36 +01:00
Daniele Varrazzo
466efe4461
Bump tests for selective closure of named cursor to pg 8.2
...
Previous versions don't support the features as they don't have the
pg_cursors view. But they are too old to care.
2018-07-24 21:16:36 +01:00
Daniele Varrazzo
6d8f4f9f0d
Close named cursor if exist, even if we didn't run execute
...
Close #746
2018-07-24 21:16:36 +01:00
Daniele Varrazzo
0e89b9de2c
Merge branch 'py37'
2018-07-13 19:12:23 +01:00
Daniele Varrazzo
a8b9c9971e
Consider PG 9.3 a thing of the past.
...
Wow, it seems yesterday...
Previosly archived as a "past" version only in the prepare script. Test
script consistent now.
[skip ci]
2018-07-13 19:11:56 +01:00
Daniele Varrazzo
82f52db9b3
Fetch the correct testing postgres packages on xenial
2018-07-13 18:25:07 +01:00
Jon Dufresne
61e644049f
Add testing and document support for Python 3.7
...
Python 3.7 was released on June 27, 2018.
https://docs.python.org/3/whatsnew/3.7.html
2018-07-12 18:07:25 -07:00
Daniele Varrazzo
6becf0ef55
Note the upgrade in wheel dependencies in NEWS file
2018-05-23 21:51:49 +01:00
Daniele Varrazzo
0aa7e21f91
Added note adivising against depending on the -wheels package
2018-05-23 21:43:48 +01:00
Daniele Varrazzo
a339ec3d8f
Dropped license paragraph applying to removed files
2018-05-23 21:20:38 +01:00
Daniele Varrazzo
166ad21e5c
Merge branch 'drop-2to3'
2018-05-21 03:36:32 +01:00