]> granicus.if.org Git - postgresql/commit
Fix LIKE's special-case code for % followed by _. I'm not entirely sure that
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 24 May 2009 18:10:38 +0000 (18:10 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 24 May 2009 18:10:38 +0000 (18:10 +0000)
commitfc2660fc253ce871b2f26e7b6dce133092357cb0
tree65635eab224dcd5421891194e1b580fb4b9e9a39
parentc6c458e24dd225e719ac289efdee50b2d6d1d16a
Fix LIKE's special-case code for % followed by _.  I'm not entirely sure that
this case is worth a special code path, but a special code path that gets
the boundary condition wrong is definitely no good.  Per bug #4821 from
Andrew Gierth.

In passing, clean up some minor code formatting issues (excess parentheses
and blank lines in odd places).

Back-patch to 8.3, where the bug was introduced.
src/backend/utils/adt/like_match.c
src/test/regress/expected/strings.out
src/test/regress/sql/strings.sql