Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 3B8CC9FB677 for ; Tue, 13 Feb 2007 03:09:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 73721-10 for ; Tue, 13 Feb 2007 03:09:07 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from p101m058.symantecmail.net (p101m058.symantecmail.net [198.65.127.58]) by postgresql.org (Postfix) with ESMTP id C6B769FB50E for ; Tue, 13 Feb 2007 03:09:08 -0400 (AST) Received: from unknown [217.109.194.249] (EHLO relais4.velizy.fr.sterianet) by p101m058.symantecmail.net (mxl_mta-2.14.0-15) with ESMTP id 41461d54.1404451760.425581.p101m058.symantecmail.net (envelope-from ); Tue, 13 Feb 2007 00:09:08 -0700 (MST) Received: from mailvel.velizy.fr.sterianet (mailvel.velizy.fr.sterianet [10.2.25.115]) by relais4.velizy.fr.sterianet (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id for pgsql-jdbc@postgresql.org; Tue, 13 Feb 2007 08:08:51 +0100 (Paris, Madrid) Received: from [127.0.0.1] ([10.2.40.163]) by mailvel.velizy.fr.sterianet (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id ; Tue, 13 Feb 2007 08:08:12 +0100 (Paris, Madrid) Date: Tue, 13 Feb 2007 08:08:59 +0100 From: Nicolas Vervelle Subject: Re: Problem with loginTimeout In-reply-to: <45D099CF.9060007@enterprisedb.com> To: Heikki Linnakangas Cc: pgsql-jdbc@postgresql.org Message-id: <45D1640B.3020904@steria.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) References: <45D09285.4080503@steria.com> <45D099CF.9060007@enterprisedb.com> X-Spam: [F=0.0100000000; S=0.010(2007010901)] X-MAIL-FROM: X-SOURCE-IP: [217.109.194.249] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.678 tagged_above=0 required=5 tests=AWL, BAYES_50, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS X-Spam-Level: * X-Archive-Number: 200702/50 X-Sequence-Number: 16606 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