Re: [hibernate-team] PostgreSQLDialect

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Dave Cramer <davec(at)fastcrypt(dot)com>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, Tom Dunstan <pgsql(at)tomd(dot)cc>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Diego Pires Plentz <diego(dot)pires(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [hibernate-team] PostgreSQLDialect
Date: 2007-11-12 16:08:43
Message-ID: 20071112160843.GD14247@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dave Cramer escribió:
>
> On 12-Nov-07, at 10:10 AM, Simon Riggs wrote:
>
>> On Mon, 2007-11-12 at 14:35 +0000, Tom Dunstan wrote:
>>> 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.
>>
>> We can extend that so it uses getMinorVersion() also.
>>
>> Personally, I think our JDBC driver is wrong, but thats another issue.
>>
> What should the driver report then ? I believe the backend code considers 8
> to be the major version, and 0123 to be the minor versions ?

No, 8.1 is the major version. In 8.2.5, 8.2 is the major, 5 is the
minor version.

--
Alvaro Herrera Developer, http://www.PostgreSQL.org/
"No hay ausente sin culpa ni presente sin disculpa" (Prov. francés)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2007-11-12 16:22:36 Re: Simplifying Text Search
Previous Message Andrew Dunstan 2007-11-12 16:02:46 Re: minimal update