pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PGXAConnection - equals method returning false
6+ messages / 4 participants
[nested] [flat]

* PGXAConnection - equals method returning false
@ 2014-02-11 23:07 Michał Woś <michal.wos@leonisapps.pl>
  2014-02-12 20:51 ` Re: PGXAConnection - equals method returning false Florent Guillaume <fg@nuxeo.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Michał Woś @ 2014-02-11 23:07 UTC (permalink / raw)
  To: pgsql-jdbc

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.


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: PGXAConnection - equals method returning false
  2014-02-11 23:07 PGXAConnection - equals method returning false Michał Woś <michal.wos@leonisapps.pl>
@ 2014-02-12 20:51 ` Florent Guillaume <fg@nuxeo.com>
  2014-02-12 21:39   ` Re: PGXAConnection - equals method returning false Michał Woś <michal.wos@leonisapps.pl>
  0 siblings, 1 reply; 6+ messages in thread

From: Florent Guillaume @ 2014-02-12 20:51 UTC (permalink / raw)
  To: Michał Woś <michal.wos@leonisapps.pl>; +Cc: pgsql-jdbc

Hi,

Yes, I already reported this in 2011:
http://www.postgresql.org/message-id/CAF-4BpPdTUVnZQd-Y70-uSHVUJ-hfxLmfCW+MBL1i1AEaLoPMg@mail.gmail....

Florent


On Wed, Feb 12, 2014 at 12:07 AM, Michał Woś <michal.wos@leonisapps.pl> wrote:
> 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.
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc



-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source Content Management Platform for Business Apps
http://www.nuxeo.com   http://community.nuxeo.com


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: PGXAConnection - equals method returning false
  2014-02-11 23:07 PGXAConnection - equals method returning false Michał Woś <michal.wos@leonisapps.pl>
  2014-02-12 20:51 ` Re: PGXAConnection - equals method returning false Florent Guillaume <fg@nuxeo.com>
@ 2014-02-12 21:39   ` Michał Woś <michal.wos@leonisapps.pl>
  2014-02-26 13:02     ` Re: PGXAConnection - equals method returning false Heikki Linnakangas <hlinnakangas@vmware.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Michał Woś @ 2014-02-12 21:39 UTC (permalink / raw)
  To: Florent Guillaume <fg@nuxeo.com>; +Cc: pgsql-jdbc

Hi Florent,

I didn’t know you already reported it. Anyway it might be good to remind Postgres guys about the problem. This issue is major and it's really hard to believe that this hasn’t been covered since 2011. I wonder how many developers will waste their time debugging Apache DBCP or other framework, only to find out that issue lies inside JDBC.

—
Michal

On 12 Feb 2014, at 21:51, Florent Guillaume <fg@nuxeo.com> wrote:

> Hi,
> 
> Yes, I already reported this in 2011:
> http://www.postgresql.org/message-id/CAF-4BpPdTUVnZQd-Y70-uSHVUJ-hfxLmfCW+MBL1i1AEaLoPMg@mail.gmail....
> 
> Florent
> 
> 
> On Wed, Feb 12, 2014 at 12:07 AM, Michał Woś <michal.wos@leonisapps.pl> wrote:
>> 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.
>> 
>> 
>> --
>> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-jdbc
> 
> 
> 
> -- 
> Florent Guillaume, Director of R&D, Nuxeo
> Open Source Content Management Platform for Business Apps
> http://www.nuxeo.com   http://community.nuxeo.com



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: PGXAConnection - equals method returning false
  2014-02-11 23:07 PGXAConnection - equals method returning false Michał Woś <michal.wos@leonisapps.pl>
  2014-02-12 20:51 ` Re: PGXAConnection - equals method returning false Florent Guillaume <fg@nuxeo.com>
  2014-02-12 21:39   ` Re: PGXAConnection - equals method returning false Michał Woś <michal.wos@leonisapps.pl>
@ 2014-02-26 13:02     ` Heikki Linnakangas <hlinnakangas@vmware.com>
  2014-03-12 11:11       ` Re: PGXAConnection - equals method returning false Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Heikki Linnakangas @ 2014-02-26 13:02 UTC (permalink / raw)
  To: Michał Woś <michal.wos@leonisapps.pl>; +Cc: Florent Guillaume <fg@nuxeo.com>; pgsql-jdbc

On 02/12/2014 11:39 PM, Michał Woś wrote:
> I didn’t know you already reported it. Anyway it might be good to remind Postgres guys about the problem. This issue is major and it's really hard to believe that this hasn’t been covered since 2011. I wonder how many developers will waste their time debugging Apache DBCP or other framework, only to find out that issue lies inside JDBC.

Yeah, it's about time we get this fixed.. I created a pull request on 
github with Florent's patch: https://github.com/pgjdbc/pgjdbc/pull/125

- Heikki


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: PGXAConnection - equals method returning false
  2014-02-11 23:07 PGXAConnection - equals method returning false Michał Woś <michal.wos@leonisapps.pl>
  2014-02-12 20:51 ` Re: PGXAConnection - equals method returning false Florent Guillaume <fg@nuxeo.com>
  2014-02-12 21:39   ` Re: PGXAConnection - equals method returning false Michał Woś <michal.wos@leonisapps.pl>
  2014-02-26 13:02     ` Re: PGXAConnection - equals method returning false Heikki Linnakangas <hlinnakangas@vmware.com>
@ 2014-03-12 11:11       ` Dave Cramer <pg@fastcrypt.com>
  2014-03-13 17:50         ` Re: PGXAConnection - equals method returning false Florent Guillaume <fg@nuxeo.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Dave Cramer @ 2014-03-12 11:11 UTC (permalink / raw)
  To: Heikki Linnakangas <hlinnakangas@vmware.com>; +Cc: Michał Woś <michal.wos@leonisapps.pl>; Florent Guillaume <fg@nuxeo.com>; pgsql-jdbc

committed, thanks

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca


On Wed, Feb 26, 2014 at 8:02 AM, Heikki Linnakangas <hlinnakangas@vmware.com
> wrote:

> On 02/12/2014 11:39 PM, Michał Woś wrote:
>
>> I didn’t know you already reported it. Anyway it might be good to remind
>> Postgres guys about the problem. This issue is major and it's really hard
>> to believe that this hasn’t been covered since 2011. I wonder how many
>> developers will waste their time debugging Apache DBCP or other framework,
>> only to find out that issue lies inside JDBC.
>>
>
> Yeah, it's about time we get this fixed.. I created a pull request on
> github with Florent's patch: https://github.com/pgjdbc/pgjdbc/pull/125
>
> - Heikki
>
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: PGXAConnection - equals method returning false
  2014-02-11 23:07 PGXAConnection - equals method returning false Michał Woś <michal.wos@leonisapps.pl>
  2014-02-12 20:51 ` Re: PGXAConnection - equals method returning false Florent Guillaume <fg@nuxeo.com>
  2014-02-12 21:39   ` Re: PGXAConnection - equals method returning false Michał Woś <michal.wos@leonisapps.pl>
  2014-02-26 13:02     ` Re: PGXAConnection - equals method returning false Heikki Linnakangas <hlinnakangas@vmware.com>
  2014-03-12 11:11       ` Re: PGXAConnection - equals method returning false Dave Cramer <pg@fastcrypt.com>
@ 2014-03-13 17:50         ` Florent Guillaume <fg@nuxeo.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Florent Guillaume @ 2014-03-13 17:50 UTC (permalink / raw)
  To: Dave Cramer <pg@fastcrypt.com>; +Cc: Heikki Linnakangas <hlinnakangas@vmware.com>; Michał Woś <michal.wos@leonisapps.pl>; pgsql-jdbc

Thanks Heikki and Dave!

Florent


On Wed, Mar 12, 2014 at 12:11 PM, Dave Cramer <pg@fastcrypt.com> wrote:

> committed, thanks
>
> Dave Cramer
>
> dave.cramer(at)credativ(dot)ca
> http://www.credativ.ca
>
>
> On Wed, Feb 26, 2014 at 8:02 AM, Heikki Linnakangas <
> hlinnakangas@vmware.com> wrote:
>
>> On 02/12/2014 11:39 PM, Michał Woś wrote:
>>
>>> I didn’t know you already reported it. Anyway it might be good to remind
>>> Postgres guys about the problem. This issue is major and it's really hard
>>> to believe that this hasn’t been covered since 2011. I wonder how many
>>> developers will waste their time debugging Apache DBCP or other framework,
>>> only to find out that issue lies inside JDBC.
>>>
>>
>> Yeah, it's about time we get this fixed.. I created a pull request on
>> github with Florent's patch: https://github.com/pgjdbc/pgjdbc/pull/125
>>
>> - Heikki
>>
>>
>>
>> --
>> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-jdbc
>>
>
>


-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source Content Management Platform for Business Apps
http://www.nuxeo.com   http://community.nuxeo.com

^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2014-03-13 17:50 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-02-11 23:07 PGXAConnection - equals method returning false Michał Woś <michal.wos@leonisapps.pl>
2014-02-12 20:51 ` Florent Guillaume <fg@nuxeo.com>
2014-02-12 21:39   ` Michał Woś <michal.wos@leonisapps.pl>
2014-02-26 13:02     ` Heikki Linnakangas <hlinnakangas@vmware.com>
2014-03-12 11:11       ` Dave Cramer <pg@fastcrypt.com>
2014-03-13 17:50         ` Florent Guillaume <fg@nuxeo.com>

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