Re: Search content within a bytea field
От
Damiano Bolzoni
Тема
Re: Search content within a bytea field
Дата
Msg-id
6fb522db0908302306n7fcda5f7ncd7423f650855dca@mail.gmail.com
Ответ на
Re: Search content within a bytea field (Sylvain Leroux)
Список
Дерево обсуждения
Search content within a bytea field Damiano Bolzoni <damiano.bolzoni@gmail.com>
Re: Search content within a bytea field Sylvain Leroux <sl20@wanadoo.fr>
Re: Search content within a bytea field Tom Lane <tgl@sss.pgh.pa.us>
Re: Search content within a bytea field Sylvain Leroux <sl20@wanadoo.fr>
Re: Search content within a bytea field Damiano Bolzoni <damiano.bolzoni@gmail.com>
Re: Search content within a bytea field Damiano Bolzoni <damiano.bolzoni@gmail.com>
Re: Search content within a bytea field Tom Lane <tgl@sss.pgh.pa.us>
Re: Search content within a bytea field Florian Weimer <fweimer@bfk.de>
Re: Search content within a bytea field Kris Jurka <books@ejurka.com>
Re: Search content within a bytea field Florian Weimer <fweimer@bfk.de>
Re: Search content within a bytea field Kris Jurka <books@ejurka.com>
Re: Search content within a bytea field Thomas Kellerer <spam_eater@gmx.net>
Re: Search content within a bytea field dmp <danap@ttc-cmc.net>
> It seems to me that the problem is comming from the BYTEA type, not from the > prepared statement by itself: As far as I know the only operator supported > by BYTEA is concatenation. You can't even compare two BYTEA for (in)equality > - even less using the LIKE operator. 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?
В списке pgsql-jdbc по дате отправления