Re: haveMinimumCompatibleVersion

From: Barry Lind <blind(at)xythos(dot)com>
To: Felipe Schnack <felipes(at)ritterdosreis(dot)br>
Cc: pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: haveMinimumCompatibleVersion
Date: 2002-11-21 17:57:13
Message-ID: 3DDD1E79.8030702@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Felipe,

You are looking at the wrong method. Look at haveMinimumServerVersion()
instead.

haveMinimumServerVersion() has the behavior you are looking for (is the
server I am connected to at least X).

havaMinimumCompatibleVersion() checks if the user has specified what
level of functionality (by setting the compatible parameter) they are
looking for. So if they are running the 7.3 driver, do they want it
work like the 7.1 driver did for some features. This has nothing to do
with the version of the database at all.

thanks,
--Barry

Felipe Schnack wrote:
> I'm writing some methods for the jdbc driver...
> In my method I wall this:
>
> connection.haveMinimumCompatibleVersion("7.3")
>
> But it returns true in a 7.2.x pgsql. Why?? I want the feature to be
> avaliable only in 7.3 or newer
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Joshua Daniel Franklin 2002-11-21 18:17:16 locking a row from JDBC
Previous Message Joel Hock 2002-11-21 16:13:05 Jdbc3PoolingDataSource and autocommit