JDBC 3 version 8.0 Error from cast conversion
JDBC 3 version 8.0 Error from cast conversion
От:
GyLes <gihemail-postgresql@yahoo.fr>
Дата:
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