From: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Exception in Boolean to int2 conversion in xwiki??
Date: Mon, 10 Oct 2005 07:22:03 +0200
Message-ID: <1128921723.6292.23.camel@Panoramix> (raw)
Hi,
I get the following exception while using xwiki and PostgreSQL, which
originates in the PostgreSQL jdbc driver according to the stacktrace:
2005-10-10 06:03:24,657 ERROR [org.hibernate.util.JDBCExceptionReporter]
Batch entry 0 update xwikiclassesprop set XWP_PRETTYNAME=Skin,
XWP_CLASSTYPE=com.xpn.xwiki.objects.classes.StringClass,
XWP_UNMODIFIABLE=0, XWP_NUMBER=1 where XWP_ID=104408758 and
XWP_NAME=skin was aborted. Call getNextException to see the cause.
2005-10-10 06:03:24,657 WARN [org.hibernate.util.JDBCExceptionReporter]
SQL Error: 0, SQLState: 42804
2005-10-10 06:03:24,657 ERROR [org.hibernate.util.JDBCExceptionReporter]
ERROR: column "xwp_unmodifiable" is of type smallint but expression is
of type boolean
Does this mean that it is not possible to convert a Java Boolean to a
PostgreSQL int2 according to the driver or am I reading the exception
text wrong?
If I am reading the exception text correct, doesn't the JDBC spec
specify a mapping from Boolean to smallint (according to Appendix B,
table B-5)?
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.Kraaijeveld@Askesis.nl
web: www.askesis.nl
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: J.Kraaijeveld@Askesis.nl
Subject: Re: Exception in Boolean to int2 conversion in xwiki??
In-Reply-To: <1128921723.6292.23.camel@Panoramix>
References: <1128921723.6292.23.camel@Panoramix>
* 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