Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YlFEd-0005DP-3Q for pgsql-odbc@arkaria.postgresql.org; Thu, 23 Apr 2015 11:23:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YlFEc-0002qV-Bx for pgsql-odbc@arkaria.postgresql.org; Thu, 23 Apr 2015 11:23:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YlFEb-0002qN-Oz for pgsql-odbc@postgresql.org; Thu, 23 Apr 2015 11:23:57 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YlFEY-0001y2-LW for pgsql-odbc@postgresql.org; Thu, 23 Apr 2015 11:23:56 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YlFER-0007BG-1K for pgsql-odbc@postgresql.org; Thu, 23 Apr 2015 13:23:47 +0200 Received: from 217.31.70.82 ([217.31.70.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Apr 2015 13:23:47 +0200 Received: from chris by 217.31.70.82 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Apr 2015 13:23:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-odbc@postgresql.org From: Christian Ullrich Subject: Problem getting @@identity Date: Thu, 23 Apr 2015 13:23:31 +0200 Lines: 24 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 217.31.70.82 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 X-Pg-Spam-Score: 0.6 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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