Re: LIKE pattern matching
| От | Thomas Lockhart |
|---|---|
| Тема | Re: LIKE pattern matching |
| Дата | |
| Msg-id | 398EEC5E.6B7FD7D4@alumni.caltech.edu обсуждение исходный текст |
| Ответ на | LIKE pattern matching (Thomas Lockhart <lockhart@alumni.caltech.edu>) |
| Список | pgsql-hackers |
> > 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.
OK. I was worried that leaving in the explicit "escape code" in the
routines will lead to bad behavior wrt both old releases *and* SQL9x.
But providing the default argument while still cleaning up the internal
code probably does The Right Thing.
- Thomas
В списке pgsql-hackers по дате отправления: