Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpy4C-0003uN-W6 for pgsql-odbc@arkaria.postgresql.org; Fri, 30 Sep 2016 13:41:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bpy4C-000743-1Q for pgsql-odbc@arkaria.postgresql.org; Fri, 30 Sep 2016 13:41:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bpy4B-00073w-JI for pgsql-odbc@postgresql.org; Fri, 30 Sep 2016 13:41:31 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpy47-00050N-GZ for pgsql-odbc@postgresql.org; Fri, 30 Sep 2016 13:41:30 +0000 Received: from mben.nabble.com (unknown [162.253.133.72]) by mbob.nabble.com (Postfix) with ESMTP id 9B0E2327ACA7 for ; Fri, 30 Sep 2016 06:37:05 -0700 (PDT) Date: Fri, 30 Sep 2016 06:41:26 -0700 (MST) From: Hong06 To: pgsql-odbc@postgresql.org Message-ID: <1475242886765-5923778.post@n3.nabble.com> Subject: ODBC isolationi level SQL_TXN_SERIALIZABLE -> "08001 Already connected." MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.1 (/) 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 everyone, I just ran into following issue with a big surprise that it does not work in ODBC. What I am doing is: - set the isolation level to: SQL_TXN_SERIALIZABLE - then connect to postgres database via ODBC function SQLDriverConnect() Example code: ret = SQLSetConnectAttr(hDbc, SQL_ATTR_TXN_ISOLATION, (SQLPOINTER)SQL_TXN_SERIALIZABLE, SQL_IS_INTEGER); ret = SQLDriverConnect(hConnect, 0, (SQLCHAR*)connString, ustrlen((unsigned char *)connString), NULL, 0, NULL, SQL_DRIVER_NOPROMPT); Then SQLDriverConnect() returns -1 with error code: "08001 Already connected." With other isolation level like SQL_TXN_READ_COMMITTED, it works fine. Any idea to solve this problem? Or is this a Postgres ODBC bug? I couldn't find anything here or on Google. -- View this message in context: http://postgresql.nabble.com/ODBC-isolationi-level-SQL-TXN-SERIALIZABLE-08001-Already-connected-tp5923778.html Sent from the PostgreSQL - odbc mailing list archive at Nabble.com. -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc