Re: [hibernate-team] PostgreSQLDialect - Mailing list pgsql-hackers

From Tom Dunstan
Subject Re: [hibernate-team] PostgreSQLDialect
Date
Msg-id ca33c0a30711120635o5be2252as818d5afc3ab84c9d@mail.gmail.com
Whole thread Raw
In response to Re: [hibernate-team] PostgreSQLDialect  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [hibernate-team] PostgreSQLDialect
Re: [hibernate-team] PostgreSQLDialect
List pgsql-hackers
On Nov 12, 2007 2:13 PM, Andrew Dunstan <andrew@dunslane.net> wrote:
> > Oh, that's nice. Unfortunately, though. it only seems to support major
> > version number differentiation as an int. Apparently the idea that you
> > might have a version number like 8.3 didn't occur to whoever wrote it,
> > although to be fair it looks like the only implementation that
> > actually uses it is Oracle, where that assumption probably holds.
> > Probably wouldn't be that hard to hack to our purposes though...
>
> 800, 801 ...

Nice try :), but as I read the javadoc for DialectFactory it seems to
suggest that hibernate gets the major number from our JDBC driver,
which dutifully reports it as 8. I doubt that we're suggesting hacking
the JDBC driver to lie just to get around this wrinkle when the
obvious solution is to submit a patch to hibernate that makes it pass
both major and minor numbers through, and the Oracle code could
happily ignore the latter.

Cheers

Tom


pgsql-hackers by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Clarification reqeusted for "select * from a huge table"
Next
From: Andrew Dunstan
Date:
Subject: Re: [hibernate-team] PostgreSQLDialect