pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: Venkatesan, Sekhar <sekhar.venkatesan@emc.com>
To: Joshua D. Drake <jd@commandprompt.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Cc: Rao, Raghavendra <raghavendra.rao@emc.com>
Cc: Choudhuri, Saurav <saurav.choudhuri@emc.com>
Subject: Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!!
Date: Sat, 30 Jan 2016 13:45:18 +0900
Message-ID: <56AC3FDE.1040400@dream.email.ne.jp> (raw)
In-Reply-To: <F84DE43FDACD4C45AA84E2DA016FAE2F1C65AA7D@MX105CL01.corp.emc.com>
References: <F84DE43FDACD4C45AA84E2DA016FAE2F1C65A834@MX105CL01.corp.emc.com>
	<56AA5348.60100@commandprompt.com>
	<F84DE43FDACD4C45AA84E2DA016FAE2F1C65AA7D@MX105CL01.corp.emc.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>



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



view thread (17+ messages)  latest in thread

Message-ID: <56AC3FDE.1040400@dream.email.ne.jp>
Permalink:  ../56AC3FDE.1040400@dream.email.ne.jp/
Also on:    postgresql.org/message-id/56AC3FDE.1040400@dream.email.ne.jp

 · 

reply

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: h-inoue@dream.email.ne.jp, sekhar.venkatesan@emc.com, jd@commandprompt.com, raghavendra.rao@emc.com, saurav.choudhuri@emc.com
  Subject: Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!!
  In-Reply-To: <56AC3FDE.1040400@dream.email.ne.jp>
  References: <F84DE43FDACD4C45AA84E2DA016FAE2F1C65A834@MX105CL01.corp.emc.com> <56AA5348.60100@commandprompt.com> <F84DE43FDACD4C45AA84E2DA016FAE2F1C65AA7D@MX105CL01.corp.emc.com> <56AC3FDE.1040400@dream.email.ne.jp>

* 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