Backport fix from master

Cherry-picked commit 8d743380e8a2e50ea42a0b1b111499461f3694b7 from master:

Fix equals-method of the wrapper returned by PGXAConnection.getConnection()

Patch by Florent Guillaume