Daniele Varrazzo
05627ac0f9
Fix unicode mogrify test on python 2
2016-10-11 00:22:23 +01:00
Daniele Varrazzo
91d2158de7
Python source cleanup using flake8
2016-10-11 00:11:55 +01:00
Daniele Varrazzo
4458c9b4c9
Merge branch 'drop-libpq-pre-91'
2016-08-15 02:58:36 +01:00
Daniele Varrazzo
b3792c7f02
Mention dropping Pre 9.1 libpq support in NEWS file
2016-08-15 02:57:49 +01:00
Daniele Varrazzo
5ddc952dbb
Dropped ifdef guards against obsolete libpq versions
...
One of them was actually wrong: lobject_type.c wouldn't have compiled
pre 8.3 (broken in 6e841a41
, 2 years ago).
2016-08-15 02:55:44 +01:00
Daniele Varrazzo
3d4f6df0de
Enforce dependency on libpq version >= 9.1
...
PGRES_COPY_BOTH was introduced in 9.1: we can ifdef the hell out of
pgpath, but we may as well bury the dead horses instead of beating
them.
They smell funny, too.
2016-08-15 02:55:43 +01:00
Daniele Varrazzo
b006190312
Merge branch 'drop-py25'
2016-08-15 02:51:10 +01:00
Daniele Varrazzo
47a312cf83
Mention dropping Py 2.5 support in NEWS file
2016-08-15 02:39:26 +01:00
Daniele Varrazzo
78649f8e90
Dropped use of b() "macro" and 2to3 fixer
...
Just use the b"" strings syntax supported from python 2.6.
2016-08-15 01:56:36 +01:00
Daniele Varrazzo
3b41c3a6f3
Stop compiling with Python 2.5
2016-08-15 01:06:42 +01:00
Daniele Varrazzo
1d950748af
Merge branch 'replication-protocol'
2016-08-14 21:09:54 +01:00
Daniele Varrazzo
01c552baa3
Mention replication support in the NEWS file
2016-08-14 21:09:00 +01:00
Daniele Varrazzo
e0883f1967
Name the db in the replication test like the unit test one
2016-08-14 19:57:29 +01:00
Daniele Varrazzo
e5390fed98
Use inttypes.h definitions
2016-08-14 19:48:31 +01:00
Daniele Varrazzo
12ecb4b2ce
Dropped import of postgres internal/c.h
...
Stops warning (caused by command line definition of PG_VERSION, so it
could have been avoided otherwise), but the file comment says:
Note that the definitions here are not intended to be exposed to clients
of the frontend interface libraries --- so we don't worry much about
polluting the namespace with lots of stuff...
so it doesn't seem a good idea gulping it.
2016-08-14 19:36:48 +01:00
Daniele Varrazzo
e779fec5f9
Merge branch 'nul-terminator'
2016-08-07 02:51:27 +01:00
Daniele Varrazzo
478f43f0c8
Mention NULL characters guard in NEWS file
...
Fix #420 .
2016-08-07 02:51:06 +01:00
Daniele Varrazzo
bd95269c69
Merge branch 'master' into nul-terminator
2016-08-07 02:49:13 +01:00
SpootDev
edd51aac25
spelling fix
2016-08-07 02:44:08 +01:00
Daniele Varrazzo
ab671146de
Merge branch 'range-picklable'
2016-08-07 02:40:05 +01:00
Daniele Varrazzo
ec1e578e4b
Report range picklable in NEWS file
...
Fix #462
Conflicts:
NEWS
2016-08-07 02:39:26 +01:00
Jonathan Ross Rogers
cde19c4d59
Make Range pickleable
2016-08-07 02:38:52 +01:00
Daniele Varrazzo
86434548a7
Replication docs massaging, mostly formatting
2016-08-07 02:23:02 +01:00
Daniele Varrazzo
9a4f8f915f
Reshuffling and indexing of replication docs
2016-08-07 02:07:16 +01:00
Daniele Varrazzo
2a4d6027a4
Merge branch 'master' into replication-protocol
...
Conflicts:
tests/testconfig.py
2016-08-07 01:53:21 +01:00
Alexander Schrijver
03824a1dba
Throw an exception when a NUL character is used as a parameter.
2016-07-18 22:56:55 +02:00
Daniele Varrazzo
90ee1ebba5
errorcodes map updated to PostgreSQL 9.5.
2016-07-01 20:14:30 +01:00
Daniele Varrazzo
7566af145b
Merge branch 'conn-get-parameters'
2016-07-01 20:12:01 +01:00
Daniele Varrazzo
00de4052d1
Mention get_dsn_parameters() in news, improved docs metadata
2016-07-01 20:10:56 +01:00
Daniele Varrazzo
e41bff8ca4
Merge branch 'bug-424'
2016-07-01 19:28:02 +01:00
Daniele Varrazzo
80fd14463b
Mention closing bug #424 in the news
2016-07-01 19:27:31 +01:00
Daniele Varrazzo
5bcaf11f9d
Allow adapting bytes using QuotedString on Python 3 too
...
Close #365 .
2016-07-01 19:14:00 +01:00
Daniele Varrazzo
70af49c0a2
Fixed encoding tests on Py3
2016-07-01 18:50:24 +01:00
Daniele Varrazzo
9c156d41bb
Docs wrapping
2016-07-01 18:03:49 +01:00
Daniele Varrazzo
1442655d3c
Merge branch 'qstring-writable-encoding'
2016-07-01 18:03:12 +01:00
Daniele Varrazzo
4a450b63c4
Don't hope to encode stuff in an arbitrary encoding
...
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).
2016-07-01 18:02:20 +01:00
Daniele Varrazzo
2e8e61b8d4
Test moved to the right module, cleanup, but same problem
2016-07-01 18:01:16 +01:00
Daniele Varrazzo
bada1f1f8e
Work in progress on writable encoding
...
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.
2016-07-01 18:00:05 +01:00
Daniele Varrazzo
c29b5cd46a
Fixed build on win32
...
Fix #422 .
2016-07-01 02:24:49 +01:00
Daniele Varrazzo
7aedc61d41
Fixed segfault on repr() for uninitialized connections
...
Close #361 .
2016-07-01 02:11:21 +01:00
Daniele Varrazzo
b7330283bc
Wordsmithing on COPY commands
...
Address somehow issue #397 .
2016-07-01 01:40:25 +01:00
Daniele Varrazzo
52753b23e8
Document that the libpq must be available at runtime
...
Fix issue #408 .
2016-07-01 01:19:28 +01:00
Greg Ward
3ed2c54790
Fix scattered grammar/spelling errors in comments, debug output, etc.
2016-06-30 21:09:15 +01:00
Oleksandr Shulgin
d5443c65fd
Fix TODOs in ReplicationMessage inline docs
2016-04-21 15:32:05 +02:00
Gabriel Kihlman
5ce00f8e5b
Avoid a possible null deref, tz might be NULL.
...
Found by clang static analyzer.
2016-04-18 17:28:50 +02:00
Daniele Varrazzo
732ea90a4f
Merge pull request #373 from nonZero/patch-1
...
Suggest installing psycopg2 in windows using pip
2016-03-10 12:25:23 +00:00
Daniele Varrazzo
4fa1b983e7
Merge pull request #415 from bmwiedemann/master
...
dont claim copyright for future years
2016-03-10 12:22:59 +00:00
Daniele Varrazzo
caa3e491f2
Merge pull request #416 from dargor/doc_typos
...
Typo.
2016-03-10 12:22:01 +00:00
Daniele Varrazzo
3033361883
Merge branch 'py35'
2016-03-10 12:14:11 +00:00
Daniele Varrazzo
4fb236e688
Start advertising Py 3.5 support
2016-03-10 12:13:57 +00:00