]> granicus.if.org Git - postgresql/commit
Allow multibyte characters as escape in SIMILAR TO and SUBSTRING.
authorJeff Davis <jdavis@postgresql.org>
Thu, 28 Aug 2014 04:07:36 +0000 (21:07 -0700)
committerJeff Davis <jdavis@postgresql.org>
Thu, 28 Aug 2014 04:07:36 +0000 (21:07 -0700)
commit8167a3883a3c49f2f77785f8e5f638920c9f14ef
tree1359c3af2d74e1dbbebc7f34ea509de7ac1745e7
parent1c9701cfe58267cf5d79543a42ee4f0967cc73ab
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.
src/backend/utils/adt/regexp.c