Thread: Get TransactionID using ODBC API

Get TransactionID using ODBC API

From
Nik Tek
Date:
Hi postgres folks,

I'm looking for getting transactionID using pgsqlODBC APIs. Is there a way, I goggled but not much of help.

I know in pg/sql, I can use txid_current()

--
Thank you
NikTeki

Re: Get TransactionID using ODBC API

From
Heikki Linnakangas
Date:

On 13 October 2016 01:28:28 EEST, Nik Tek <niktek2005@gmail.com> wrote:
>I'm looking for getting transactionID using pgsqlODBC APIs. Is there a
>way,
>I goggled but not much of help.
>
>I know in pg/sql, I can use txid_current()

There's no special API for that in the driver, but you can run a query: "select txid_current()".

- Heikki