Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2D8A263358E for ; Wed, 8 Sep 2010 05:23:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 04141-03 for ; Wed, 8 Sep 2010 08:23:44 +0000 (UTC) X-Greylist: delayed 00:20:03.404219 by SQLgrey-1.7.6 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mail.postgresql.org (Postfix) with ESMTP id 128036334FB for ; Wed, 8 Sep 2010 05:23:45 -0300 (ADT) Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OtFcw-0006Ht-0Y for pgsql-jdbc@postgresql.org; Wed, 08 Sep 2010 01:03:30 -0700 Date: Wed, 8 Sep 2010 01:03:30 -0700 (PDT) From: joiny To: pgsql-jdbc@postgresql.org Message-ID: <1283933010011-2807499.post@n5.nabble.com> Subject: postgresql 8.4 type mapping problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.121 tagged_above=-10 required=5 tests=BAYES_40=-0.001, URI_HEX=1.122 X-Spam-Level: * X-Archive-Number: 201009/8 X-Sequence-Number: 20878 I defined a filed with "character" type,how to mapping this type to java. I hava used "char" ,"Character","String","Integer".they are all error. here is the Exception info "Caused by: java.lang.IllegalArgumentException: Can't change resolved type for param: 8 from 1043 to 1042 at org.postgresql.core.v3.SimpleParameterList.setResolvedType(SimpleParameterList.java:230) at org.postgresql.core.v3.QueryExecutorImpl.sendOneQuery(QueryExecutorImpl.java:1488) at org.postgresql.core.v3.QueryExecutorImpl.sendQuery(QueryExecutorImpl.java:1062) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:367) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:321) at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102) at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:611) at com.spirit.spark.helper.QueryHelper.update(QueryHelper.java:317) at com.spirit.spark.models.Users.addUser(Users.java:37) at com.spirit.spark.controllers.SignupController.submit(SignupController.java:60) ... 27 more" -- View this message in context: http://postgresql.1045698.n5.nabble.com/postgresql-8-4-type-mapping-problem-tp2807499p2807499.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.