From: joiny <jbakwd@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: postgresql 8.4 type mapping problem
Date: Wed, 8 Sep 2010 01:03:30 -0700 (PDT)
Message-ID: <1283933010011-2807499.post@n5.nabble.com> (raw)
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.
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: jbakwd@gmail.com
Subject: Re: postgresql 8.4 type mapping problem
In-Reply-To: <1283933010011-2807499.post@n5.nabble.com>
References: <1283933010011-2807499.post@n5.nabble.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