Closed remicollet closed 5 years ago
Maybe it will be easier to give up the old versions, make the version requirement PostgreSQL >= 9.3 (or 9.4)
@ParkFramework 9.2 is the version available in RHEL / CentOS 7 (a quite common distro)
@m6w6 how would you feel about ensuring the array format is always the same by putting dummy NULL
s in for fields that an older pq doesn't provide? Feels like a cleaner solution to me than branching/skipping tests on pq version, esp. as this is basically what userland would end up having to do as well.
Sounds like a good plan, actually!
@m6w6 using, for each constant
#ifndef PG_DIAG_SCHEMA_NAME
#define PG_DIAG_SCHEMA_NAME 's'
#endif
From a quick check into the sources, the call to PQresultErrorField will return NULL for unkown case. Could be a simple way.
Only because of missing entries in "diag"
Version 1.1.1 and 2.1.1: