Обсуждение: BUG #9117: PGXAConnection - equals method returning false

Поиск
Список
Период
Сортировка

BUG #9117: PGXAConnection - equals method returning false

От
michal.wos@leonisapps.pl
Дата:
The following bug has been logged on the website:

Bug reference:      9117
Logged by:          Michał Woś
Email address:      michal.wos@leonisapps.pl
PostgreSQL version: 9.3.2
Operating system:   All OS
Description:

PGXAConnection - equals method is not working. It returns false due to
wrapping connection into Proxy object. Second argument of invoke is not
unwrapped so we have:

unwrapped_connection.equals(wrapped_connection)

Correct implementation can be found in AbstractJdbc23PooledConnection class.
It compares wrapped objects.

Re: BUG #9117: PGXAConnection - equals method returning false

От
Bruce Momjian
Дата:
On Thu, Feb  6, 2014 at 12:09:29AM +0000, michal.wos@leonisapps.pl wrote:
> The following bug has been logged on the website:
>
> Bug reference:      9117
> Logged by:          Michał Woś
> Email address:      michal.wos@leonisapps.pl
> PostgreSQL version: 9.3.2
> Operating system:   All OS
> Description:
>
> PGXAConnection - equals method is not working. It returns false due to
> wrapping connection into Proxy object. Second argument of invoke is not
> unwrapped so we have:
>
> unwrapped_connection.equals(wrapped_connection)
>
> Correct implementation can be found in AbstractJdbc23PooledConnection class.
> It compares wrapped objects.

Is this a JDBC bug?  If so, please email the JDBC email list,
pgsql-jdbc@postgresql.org.  Thanks.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +