Re: Search content within a bytea field

From: Kris Jurka <books(at)ejurka(dot)com>
To: Florian Weimer <fweimer(at)bfk(dot)de>
Cc: Kris Jurka <books(at)ejurka(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Damiano Bolzoni <damiano(dot)bolzoni(at)gmail(dot)com>, Sylvain Leroux <sl20(at)wanadoo(dot)fr>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Search content within a bytea field
Date: 2009-09-05 14:26:53
Message-ID: 4AA2752D.60709@ejurka.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Florian Weimer wrote:
> * Kris Jurka:
>
>> Use setObject(int, object, Types.OTHER);
>
> I get a PSQLException with "Cannot cast an instance of
> java.lang.String to type Types.OTHER". Other types (such as Integer)
> don't work, either.
>
> I look rather hard at Debian's 8.2-504-3 source but couldn't find a
> straightforward way to make this work, beyond specifying
> stringtype=unspecified for the whole connection.
>

This is new functionality in 8.3 and newer drivers.

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Anjani Kumar Sahu 2009-09-07 07:29:46 Need help to download jdbc driver in Dspace windows
Previous Message Florian Weimer 2009-09-05 14:06:07 Re: Search content within a bytea field