pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Florian Weimer <fweimer@bfk.de>
Cc: Kris Jurka <books@ejurka.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Damiano Bolzoni <damiano.bolzoni@gmail.com>
Cc: Sylvain Leroux <sl20@wanadoo.fr>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Search content within a bytea field
Date: Sat, 05 Sep 2009 07:26:53 -0700
Message-ID: <4AA2752D.60709@ejurka.com> (raw)
In-Reply-To: <82ws4dlc4w.fsf@mid.bfk.de>
References: <6fb522db0908301333o3bfeb6e9l5c2ad9dd04308e18@mail.gmail.com>
	<4A9AF477.5040706@wanadoo.fr>
	<6fb522db0908302306n7fcda5f7ncd7423f650855dca@mail.gmail.com>
	<798.1251727871@sss.pgh.pa.us>
	<82iqg0w2mo.fsf@mid.bfk.de>
	<alpine.BSO.2.00.0909031311470.7085@leary.csoft.net>
	<82ws4dlc4w.fsf@mid.bfk.de>

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



view thread (13+ messages)

Message-ID: <4AA2752D.60709@ejurka.com>
Permalink:  ../4AA2752D.60709@ejurka.com/
Also on:    postgresql.org/message-id/4AA2752D.60709@ejurka.com

 · 

reply

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: books@ejurka.com, fweimer@bfk.de, tgl@sss.pgh.pa.us, damiano.bolzoni@gmail.com, sl20@wanadoo.fr
  Subject: Re: Search content within a bytea field
  In-Reply-To: <4AA2752D.60709@ejurka.com>
  References: <6fb522db0908301333o3bfeb6e9l5c2ad9dd04308e18@mail.gmail.com> <4A9AF477.5040706@wanadoo.fr> <6fb522db0908302306n7fcda5f7ncd7423f650855dca@mail.gmail.com> <798.1251727871@sss.pgh.pa.us> <82iqg0w2mo.fsf@mid.bfk.de> <alpine.BSO.2.00.0909031311470.7085@leary.csoft.net> <82ws4dlc4w.fsf@mid.bfk.de> <4AA2752D.60709@ejurka.com>

* 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