From: Christian Ullrich <chris@chrullrich.net>
To: pgsql-odbc@postgresql.org
Subject: Problem getting @@identity
Date: Thu, 23 Apr 2015 13:23:31 +0200
Message-ID: <mhaknj$e4g$1@ger.gmane.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Hello all,
I have a problem with getting @@identity from git master. The result is
always NULL. I have no idea what the underlying cause is, but the error
manifests at info.c line 2235:
col_stmt->internal = TRUE;
result = PGAPI_ExecDirect(hcol_stmt, (SQLCHAR *) columns_query,
SQL_NTS, 0);
if (!SQL_SUCCEEDED(result))
{
SC_full_error_copy(stmt, col_stmt, FALSE);
goto cleanup;
}
The ExecDirect() call fails with "Connection is already in use."
According to git bisect, the responsible commit is e85fbb "Use libpq for
everything", but I'm not totally certain because I had to skip a lot.
As for finding the actual problem and fixing it, I'm afraid I won't be
much help; the innards of this driver are a mystery to me.
--
Christian
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: chris@chrullrich.net
Subject: Re: Problem getting @@identity
In-Reply-To: <mhaknj$e4g$1@ger.gmane.org>
References: <mhaknj$e4g$1@ger.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox