From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Test suite fails on non-default configuration
Date: Mon, 18 Apr 2011 19:12:49 -0400
Message-ID: <18342.1303168369@sss.pgh.pa.us> (raw)
In-Reply-To: <4DAC66AB020000250003C97F@gw.wicourts.gov>
References: <4DAC66AB020000250003C97F@gw.wicourts.gov>
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> // PostgreSQL defaults to READ COMMITTED
> assertEquals(Connection.TRANSACTION_READ_COMMITTED,
> con.getTransactionIsolation());
> Should the unit tests really be failing based on configuration
> options?
Well, for a comparison point, you can certainly make the server's
regression tests fail too if you whack the configuration around enough.
I agree that the above seems perhaps overly fragile, but I don't think
you can expect to have a general principle that the JDBC tests should
pass regardless of configuration. It's more a question of how painful
is it to support any particular nondefault configuration choice, and
does it seem worth it based on real-world usage of the choice.
regards, tom lane
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-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, Kevin.Grittner@wicourts.gov
Subject: Re: Test suite fails on non-default configuration
In-Reply-To: <18342.1303168369@sss.pgh.pa.us>
References: <4DAC66AB020000250003C97F@gw.wicourts.gov> <18342.1303168369@sss.pgh.pa.us>
* 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