LIKE - bug or expected behaviour?

From: "Jan-Peter Seifert" <Jan-Peter(dot)Seifert(at)gmx(dot)de>
To: pgsql-admin(at)postgresql(dot)org
Subject: LIKE - bug or expected behaviour?
Date: 2009-10-05 13:35:22
Message-ID: 20091005133522.78210@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello,

we have user specific views with names that follow this pattern:

_table_username

Strangely the following select:

SELECT table_name FROM information_schema.views WHERE table_schema = current_schema() AND table_name LIKE '\_%\_username';

does also match views with names like table_username.

This syntax does match as expected though:

SELECT table_name FROM information_schema.views WHERE table_schema = current_schema() AND table_name LIKE E'\\_%\\_username';

Is this behaviour to be expected?

Thank you very much,

Peter

--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2009-10-05 13:59:33 Re: LIKE - bug or expected behaviour?
Previous Message Julius Tuskenis 2009-10-05 06:28:12 Re: where the stored function meta data can be found?