Re: LIKE pattern matching

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
Cc: Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: LIKE pattern matching
Date: 2000-08-07 16:35:58
Message-ID: 6542.965666158@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu> writes:
> That said, it is trivial to clean up the internal code as I propose but
> to *also* support the default backslash (not SQL9x compliant, but what
> the heck ;) by simply passing the right parameter to the new "two
> argument" like() support routines. That parameter could be set back to
> NULL after the next release to get us back to SQL9x compliance.

Sure. I'm merely arguing that the default behavior needs to be to treat
backslash as escape by default for at least one more release. You need
to give people warning and time to update their applications to say
"LIKE ... ESCAPE '\\'", if that's the behavior they want to have going
forward.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Henry B. Hotz 2000-08-07 16:40:22 Re: Installation Report for powerpc-apple-netbsdelf1.5
Previous Message Tom Lane 2000-08-07 16:32:48 Re: Constraint stuff