Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: I do not understand the exception


  • From: Kris Jurka <books(at)ejurka(dot)com>
  • To: Jaap Bril <Jaap(dot)Bril(at)inter(dot)nl(dot)net>
  • Cc: pgsql-jdbc(at)postgresql(dot)org
  • Subject: Re: I do not understand the exception
  • Date: Tue, 24 Aug 2004 10:07:02 -0500 (EST)
  • Message-id: <Pine.BSO.4.56.0408241005450.2585@leary.csoft.net> <text/plain>


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



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group