From: | thhal at mailblocks(dot)com (Thomas Hallgren) |
---|---|
To: | |
Subject: | [Pljava-dev] Re: Problems with JDBC-UNICODE |
Date: | 2005-05-05 15:16:36 |
Message-ID: | thhal-0VtFVAzNxyicigrz8orPlHPq6whHEME@mailblocks.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
Jordi Marqu?s wrote:
> My PreparedStatement is:
>
> INSERT INTO FUENTE (FUE_IDINT, FUE_NOMBRE, FUE_CODIGO, FUE_TIPO) VALUES
> (?, ?, ?, ?)
>
> pstmt = conn.prepareStatement(query,
> ResultSet.TYPE_SCROLL_INSENSITIVE,
> ResultSet.CONCUR_READ_ONLY);
> pstmt.setInt(1, bean.getId());
> pstmt.setString(2, bean.getName());
> pstmt.setString(3, bean.getCode());
> pstmt.setString(4, bean.getType));
>
> pstmt.executeUpdate();
>
> conn.commit();
>
I don't think there's anything that PL/Java does that would cause this
error. A statement like this is basically just passed on to the backend
SPI layer. Strings are converted from what java uses (Unicode) to
whatever is used in the backend by means of normal PostgreSQL conversion
routines.
Can you execute your statement using the client JDBC driver?, I.e. not
using PL/Java?
How do you obtain your java.sql.Connection?
Regards,
Thomas Hallgren
From | Date | Subject | |
---|---|---|---|
Next Message | Joao Vieira | 2005-05-05 22:31:36 | [Pljava-dev] Problem installing plJava |
Previous Message | Jordi Marquès | 2005-05-05 14:34:19 | [Pljava-dev] Problems with JDBC-UNICODE |