Обсуждение: pgsql: Allow multibyte characters as escape in SIMILAR TO and SUBSTRING

Поиск
Список
Период
Сортировка

pgsql: Allow multibyte characters as escape in SIMILAR TO and SUBSTRING

От
Jeff Davis
Дата:
Allow multibyte characters as escape in SIMILAR TO and SUBSTRING.

Previously, only a single-byte character was allowed as an
escape. This patch allows it to be a multi-byte character, though it
still must be a single character.

Reviewed by Heikki Linnakangas and Tom Lane.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8167a3883a3c49f2f77785f8e5f638920c9f14ef

Modified Files
--------------
src/backend/utils/adt/regexp.c |   63 ++++++++++++++++++++++++++++++++++++----
1 file changed, 58 insertions(+), 5 deletions(-)