Re: NPE in psqlodbc30a.dll!PgDtc_set_property caused by pgendlista.dll!IAsyncPG::RequestExec

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: "Inoue, Hiroshi" <inoue(at)tpf(dot)co(dot)jp>, "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: NPE in psqlodbc30a.dll!PgDtc_set_property caused by pgendlista.dll!IAsyncPG::RequestExec
Date: 2014-06-14 09:16:04
Message-ID: 539C12D4.8030503@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

On 06/13/2014 11:52 PM, Inoue, Hiroshi wrote:
>
> Oops you are right.
> Anyway it would take some time to fix it.
> I would have to remember the code first.

Yeah, I can imagine you don't poke around in that bit of the code a lot.

The Dtc_set_property call looks like it's just simple cleanup, so I'm
inclined to just shove it in an } else { } block. The cleanup performed
makes no sense if the connection has already been closed.

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Inoue, Hiroshi 2014-06-14 13:36:54 Re: Build failure with VS 2012 due to uninitialized pointers
Previous Message Walter Couto 2014-06-13 23:20:34 Re: Re: Inconsistency between JDBC and ODBC drivers when dealing with TIMESTAMP WITH TIME ZONE