From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Search content within a bytea field
Date: Mon, 31 Aug 2009 16:21:16 +0200
Message-ID: <h7gm8l$u2k$1@ger.gmane.org> (raw)
In-Reply-To: <6fb522db0908302306n7fcda5f7ncd7423f650855dca@mail.gmail.com>
References: <6fb522db0908301333o3bfeb6e9l5c2ad9dd04308e18@mail.gmail.com>
<4A9AF477.5040706@wanadoo.fr>
<6fb522db0908302306n7fcda5f7ncd7423f650855dca@mail.gmail.com>
Damiano Bolzoni, 31.08.2009 08:06:
> Right, I suspected that too, as I've been reading a little bit around.
> But...why if I manually query with a SQL client (AquaStudio) as
> follows:
>
> SELECT myfield FROM mytable WHERE myfield LIKE '%hello%'
>
> and 'myfield' is a bytea field I get the result I expected? What's the
> "trick" the client uses behind the curtains?
This looks _very_ strange (if not even wrong) to me.
If you are storing character data, why don't you use the text datatype?
Thomas
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: spam_eater@gmx.net
Subject: Re: Search content within a bytea field
In-Reply-To: <h7gm8l$u2k$1@ger.gmane.org>
References: <6fb522db0908301333o3bfeb6e9l5c2ad9dd04308e18@mail.gmail.com> <4A9AF477.5040706@wanadoo.fr> <6fb522db0908302306n7fcda5f7ncd7423f650855dca@mail.gmail.com> <h7gm8l$u2k$1@ger.gmane.org>
* 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