jtv / libpqxx

The official C++ client API for PostgreSQL.
http://pqxx.org/libpqxx/
BSD 3-Clause "New" or "Revised" License
1.01k stars 239 forks source link

`query()` for prepared statements #644

Closed maresc-g closed 1 month ago

maresc-g commented 1 year ago

Hi,

We're looking to upgrade our version of pqxx in our application so I just came across the release note of the 7.7.4 in which you ask for feedback on if we still use pqxx::result.
I'd like to use the feature to automatically convert types like with query() but we only use prepared queries so we call exec_prepared() which still returns a pqxx::result. Is it planned to add this for prepared queries as well in future releases ?

Thanks

jtv commented 2 months ago

Thanks all! I was on a more or less forced vacation for the past two weeks, so I'm most grateful to find this resolved. I would not have been much use on this one.

I do sometimes wish C++ compilers would drop the pretense that binaries are link-compatible when they really aren't...

jtv commented 1 month ago

This ticket unfortunately got "hijacked" for a unrelated problem, and the original request got downed out.

So I'll close this one, and file a fresh one for the original issue. @LucidApparition in future please file a new ticket when no existing ticket exactly matches your problem.

jtv commented 1 month ago

The new ticket for the original question is #871.