Re: I do not understand the exception - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: I do not understand the exception
Date
Msg-id Pine.BSO.4.56.0408241005450.2585@leary.csoft.net
Whole thread Raw
In response to I do not understand the exception  (Jaap Bril <Jaap.Bril@inter.nl.net>)
List pgsql-jdbc

On Tue, 24 Aug 2004, Jaap Bril wrote:

> the exception is
>     SQLEXCEPTION:Storing thumbnail failed:
>     java.sql.SQLException: ERROR:  Bad int8 external representation
>     "\377\330\377\340\  [.........]
>
>         String thumbnail_insert = "INSERT INTO thumbnails VALUES (?)";

You are trying to put the byte array into your serial column.  You need to
explicitly name the column you want in your insert statement.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Jaap Bril
Date:
Subject: I do not understand the exception
Next
From: "Hanna Tapani"
Date:
Subject: JDBC