X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DF5BFD98B5 for ; Tue, 27 Sep 2005 05:19:52 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64806-07 for ; Tue, 27 Sep 2005 08:19:46 +0000 (GMT) Received: from web25804.mail.ukl.yahoo.com (web25804.mail.ukl.yahoo.com [217.12.10.189]) by svr1.postgresql.org (Postfix) with SMTP id 86A37D98AF for ; Tue, 27 Sep 2005 05:19:46 -0300 (ADT) Received: (qmail 63581 invoked by uid 60001); 27 Sep 2005 08:19:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=eIOucsXabzk/yYJVAzX0MRfzUtZqOjflHsVtDLC1Vp59pI9C6uHts9zw32k0Zx0jJHBFEPLi3yxn02bNHIrF3ZkY3hohSBjbzBSJzYB3Qu8uOCuhnPknsEkte/+OFDgzdP3t33Q92XFDwCeFcOrlMrfjb2nXLVI2+kh5Zj60PQI= ; Message-ID: <20050927081948.63579.qmail@web25804.mail.ukl.yahoo.com> Received: from [194.2.91.222] by web25804.mail.ukl.yahoo.com via HTTP; Tue, 27 Sep 2005 10:19:47 CEST Date: Tue, 27 Sep 2005 10:19:47 +0200 (CEST) From: GyLes Reply-To: gihemail-postgresql@yahoo.fr Subject: JDBC 3 version 8.0 Error from cast conversion To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200509/112 X-Sequence-Number: 13897 Hi All, i'm using postgresql version 8.0 and 8.1 beta1 server. I developp a little web applicaton in JSTL 1.1, JDK 1.5, tomcat 5.5.9. Here's the HTML form to input some data : <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> Simple Example <%@ include file='header.jsp' %>
code: text:
and the jsp page to record data : <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> Simple Example INSERT INTO ESS.TEST (ID,NOM) VALUES (?,?) With JDBC 3 driver version 8.0 or 8.1, i obtain an error message from Tomcat : javax.servlet.ServletException: javax.servlet.jsp.JspException: INSERT INTO ESS.TEST (ID,NOM) VALUES (?,?) : ERROR: column "id" is of type bigint but expression is of type character varying ==> If i use JDBC 3 driver version 7.3, no problem with postgresql version 8.0 or 8.1 beta 1 ! Any help will be welcome. Thanks in advance. GyLes ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com