Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aPNPf-000348-6D for pgsql-odbc@arkaria.postgresql.org; Sat, 30 Jan 2016 04:45:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aPNPe-0008KR-OR for pgsql-odbc@arkaria.postgresql.org; Sat, 30 Jan 2016 04:45:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aPNPe-0008KF-AJ for pgsql-odbc@postgresql.org; Sat, 30 Jan 2016 04:45:30 +0000 Received: from mail2.asahi-net.or.jp ([202.224.39.198]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aPNPZ-0006Ap-51 for pgsql-odbc@postgresql.org; Sat, 30 Jan 2016 04:45:29 +0000 Received: from [192.168.1.3] (ab063014.dynamic.ppp.asahi-net.or.jp [183.76.63.14]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id DA62C64AA; Sat, 30 Jan 2016 13:45:17 +0900 (JST) Subject: Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!! To: "Venkatesan, Sekhar" , "Joshua D. Drake" References: <56AA5348.60100@commandprompt.com> Cc: "pgsql-odbc@postgresql.org" , "Rao, Raghavendra" , "Choudhuri, Saurav" From: "Inoue, Hiroshi" Message-ID: <56AC3FDE.1040400@dream.email.ne.jp> Date: Sat, 30 Jan 2016 13:45:18 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.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 On 2016/01/29 19:25, Venkatesan, Sekhar wrote: > Including few people in this loop. > > -----Original Message----- > From: Venkatesan, Sekhar > Sent: Friday, January 29, 2016 10:04 AM > To: 'Joshua D. Drake'; 'pgsql-odbc@postgresql.org' > Subject: RE: [ODBC] PostgreSQL: Autocommit through windows odbc driver doesnt work!!! > > HI Joshua, > > I perform the following set of operations to set autocommit in postgreSQL through ODBC in windows. > SQLSetConnectAttr(hDbc, SQL_ATTR_AUTOCOMMIT, (SQLPOINTER) SQL_AUTOCOMMIT_ON, 0) > > ret = SQLDriverConnect(_hdbc, NULL, (SQLCHAR*) dsn.GetChars(), SQL_NTS, NULL, 0, NULL, SQL_DRIVER_NOPROMPT); > > This doesn't enable autocommit. If I call SQLSetConnectAttr after SQLDriverConnect, autocommit is set. > Any issue with this sequence? I assume It should be possible to set SQL_ATTR_AUTOCOMMIT before establishing connection. > Can you please confirm on this behavior? > Unfortunately I can't reproduce it. Could you take the Mylog output of the case? regards, Hiroshi Inoue   -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc