Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aTA1l-0000AS-6j for pgsql-odbc@arkaria.postgresql.org; Tue, 09 Feb 2016 15:16:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aTA1k-0001Nr-0o for pgsql-odbc@arkaria.postgresql.org; Tue, 09 Feb 2016 15:16:28 +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) (envelope-from ) id 1aTA1M-0000yd-OZ for pgsql-odbc@postgresql.org; Tue, 09 Feb 2016 15:16:05 +0000 Received: from [66.111.4.29] (helo=out5-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aTA1F-00055L-Ks for pgsql-odbc@postgresql.org; Tue, 09 Feb 2016 15:16:03 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5BE9720D98 for ; Tue, 9 Feb 2016 10:15:36 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Tue, 09 Feb 2016 10:15:36 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=VGr8E4S+sMSmzem6O5W958CWU1M=; b=eB4tPT tNx6YuZlFhe7uqPTp712i06BFjiPPgGmOgRALdzEe8Sb14uUWlUnHIdQ5cLLZBlA 6pxSDOLCujCf3xq/c4Bti9K5dahgMWq79+Wq126aUm0D7ysdaURkAgUWxwbwnNGJ ev0LIlQ/HFhFWtBN/f3ZDahQiVgFHH1VG8M5U= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=VGr8E4S+sMSmzem 6O5W958CWU1M=; b=W9NdKReD6vs56AP2VUnwhEkhYwcK7J84YZTB2m2lx+WiNa3 VWYuC9cdeNn72qLvpYOA2jQXZZSNkggVBzdhZf9uElwioV5Ls3ns3BN4pjBNWkFq f6crGojxD0DubQRq6adnzxSG0t4ChLHg8K/Dvm1srh8p7fuEGNaNya2JvqxA= X-Sasl-enc: FSFTwhjqm+Bxegn34AZd/sa1u2KTbG/XLe9IuNTls2da 1455030935 Received: from [192.168.1.2] (174-21-70-246.tukw.qwest.net [174.21.70.246]) by mail.messagingengine.com (Postfix) with ESMTPA id 94523680070; Tue, 9 Feb 2016 10:15:35 -0500 (EST) Subject: Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!! To: "Venkatesan, Sekhar" , "Joshua D. Drake" , "pgsql-odbc@postgresql.org" References: <56AA5348.60100@commandprompt.com> <56ABD9CF.7030400@aklaver.com> From: Adrian Klaver Message-ID: <56BA0257.2030909@aklaver.com> Date: Tue, 9 Feb 2016 07:14:31 -0800 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.29 (deferred) X-Pg-Spam-Score: -1.9 (-) 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 02/08/2016 08:10 PM, Venkatesan, Sekhar wrote: Ccing list. > Hi Adrian, > > Sorry for getting back to you late. I tried with psqlodbc version, 09.05.0100 but the issue is still seen? > Let me know what next step I can follow to root cause this? Any tracing you would suggest? I do not have an answer, returning this to list for those that might. > > Thanks, > Sekhar > > -----Original Message----- > From: Adrian Klaver [mailto:adrian.klaver@aklaver.com] > Sent: Saturday, January 30, 2016 3:00 AM > To: Venkatesan, Sekhar; Joshua D. Drake; pgsql-odbc@postgresql.org > Subject: Re: [ODBC] PostgreSQL: Autocommit through windows odbc driver doesnt work!!! > > On 01/28/2016 08:36 PM, Venkatesan, Sekhar wrote: >> 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? > > I would say it is this bug: > > http://www.postgresql.org/message-id/55BD0ABE.5010800@iki.fi > > So have you tried the latest psqlodbc version, 09.05.0100 ? > >> >> Thanks, >> Sekhar >> >> -----Original Message----- >> From: Joshua D. Drake [mailto:jd@commandprompt.com] >> Sent: Thursday, January 28, 2016 11:14 PM >> To: Venkatesan, Sekhar; pgsql-odbc@postgresql.org >> Subject: Re: [ODBC] PostgreSQL: Autocommit through windows odbc driver doesnt work!!! >> >> On 01/28/2016 08:53 AM, Venkatesan, Sekhar wrote: >> >>> Is the above issue fixed? Also in my use-case, I want to enable >>> autocommit at odbc driver level but even that doesn't work. >>> >>> The same application works in Linux OS when unix odbc driver is used. >>> This seems to be specific to windows driver. >>> >>> Please shed some light on this. Do ask me further question if you have any. >>> >> >> By default PostgreSQL "autocommits". If it isn't in your case, your driver is starting a transaction and not committing it. >> >> Sincerely, >> >> JD >> >> >> >> > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc