Don't use PG_INT64_TYPE

Only defined in Postgres 9.3

Should close #520, but let's wait for the CI response (build on
Windows etc.)
This commit is contained in:
Daniele Varrazzo 2017-03-02 17:35:46 +00:00
parent 3a441467c0
commit 26bd5df048
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -6,6 +6,7 @@ What's new in psycopg 2.7.1
- Ignore `!None` arguments passed to `~psycopg2.connect()` and
`~psycopg2.extensions.make_dsn()` (:ticket:`#517`).
- Fixed build with libpq versions < 9.3 (:ticket:`#520`).
What's new in psycopg 2.7

View File

@ -28,7 +28,7 @@
#include "psycopg/config.h"
/* type and constant definitions from internal postgres include */
typedef unsigned PG_INT64_TYPE XLogRecPtr;
typedef uint64_t XLogRecPtr;
/* have to use lowercase %x, as PyString_FromFormat can't do %X */
#define XLOGFMTSTR "%x/%x"