pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nicolas Vervelle <nicolas.vervelle@steria.com>
To: Heikki Linnakangas <heikki@enterprisedb.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problem with loginTimeout
Date: Tue, 13 Feb 2007 08:08:59 +0100
Message-ID: <45D1640B.3020904@steria.com> (raw)
In-Reply-To: <45D099CF.9060007@enterprisedb.com>
References: <45D09285.4080503@steria.com>
	<45D099CF.9060007@enterprisedb.com>

Heikki Linnakangas wrote:
> Nicolas Vervelle wrote:
>> I tried updating to the latest JDBC driver (8.2 build 504), and the 
>> problem seems to be fixed.
>> But then I am getting errors with my EJB Entities when trying to 
>> create new instances :
>> Could not create entity
>> org.postgresql.util.PSQLException: ERROR: column 
>> "tab_alarme_emis_pcc" is of type boolean but expression is of type 
>> character
>> The corresponding field is defined as :
>> - in the EJB entity: with
>>     @ejb.persistence column-name="TAB_ALARME_EMIS_PCC"
>>     public abstract Boolean getEmisPcc();
>> - in the database: with tab_alarme_emis_pcc boolean
>
> It seems there's a problem in your EJB container or mapping etc. 
> causing it to send booleans as CHARs instead.
>
>> What is the problem ? Please help.
>> Is there a global setting to have the pgdriver behaving as it was in 
>> 7.4 ?
>
> Try protocolVersion=2, see 
> http://jdbc.postgresql.org/documentation/82/connect.html#connection-parameters 
>
>
Thanks,

protocolVersion=2 in the datasource configuration fixed the problem.

Nicolas





view thread (4+ messages)  latest in thread

Message-ID: <45D1640B.3020904@steria.com>
Permalink:  ../45D1640B.3020904@steria.com/
Also on:    postgresql.org/message-id/45D1640B.3020904@steria.com

 · 

reply

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: nicolas.vervelle@steria.com, heikki@enterprisedb.com
  Subject: Re: Problem with loginTimeout
  In-Reply-To: <45D1640B.3020904@steria.com>
  References: <45D09285.4080503@steria.com> <45D099CF.9060007@enterprisedb.com> <45D1640B.3020904@steria.com>

* 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