libpqxx:feature-test-macro

Last commit made on 2022-11-24
Get this branch:
git clone -b feature-test-macro https://git.launchpad.net/libpqxx

Branch merges

Branch information

Name:
feature-test-macro
Repository:
lp:libpqxx

Recent commits

4e76249... by Jeroen T. Vermeulen

Remove from CMake setup as well.

06d7b87... by Jeroen T. Vermeulen

Use libpq's feature test macros.

As of libpq 14, libpq-fe.h defines macros for features available in its
libpq version. That means we won't be needing a `configure` check for
`PQenterPipelineMode()` after all: we can just `#ifdef` it.

e14bbcf... by Jeroen T. Vermeulen

TODO: libpq-fe.h feature test macros.

9b8b948... by Jeroen T. Vermeulen

TODO: PQresultMemorySize().

173e63a... by Jeroen Vermeulen <email address hidden>

Backslashes do not occur in unquoted strings. (#607)

Removes a little wart in the array/composite/range field parser.

The postgres documentation does in fact promise that if an array element is a string that contains a backslash, that element will show up in double quotes.

4565895... by Jeroen Vermeulen <email address hidden>

Overhaul array parser. Comma-separated types only. (#606)

The `array_parser` was seriously broken (#590): SQL arrays may contain elements that have a semicolon in them... _and the back-end won't put them in quotes._ The parser would always see that as a field separator. Same thing for commas in e.g. the SQL "box" type, which uses the semicolon as its separator but uses commas inside an object.

So I'm limiting `array_parser` for use with comma-separated types only, and planning a better, friendlier, faster, more flexible API for parsing arrays.

At the same time, I did manage to specialise `array_parser` internally to different encodings, which should make it considerably faster. These changes will also benefit the future array parsing API.

b779194... by Jeroen Vermeulen <email address hidden>

Make more functions `noexcept`. (#605)

509cf38... by Jeroen T. Vermeulen

Document.

ec1e30d... by Jeroen Vermeulen <email address hidden>

Bump minimum libpq/postgres to version 10. (#604)

The PostgreSQL project no longer supports postgres 9, so I'm dropping
it off the libpqxx support list as well.

The only consequence code-wise is that libpqxx will now assume that
libpq has a `PQencryptPasswordConn()`.

Actually might be nice to have a compile-time check for an acceptable
libpq version. But that's a separate project.

9bf8be5... by Jeroen T. Vermeulen

Remove an unjustified `constexpr`.