]> git.ipfire.org Git - thirdparty/postgresql.git/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:47 +0000 (18:10 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 24 May 2009 18:10:47 +0000 (18:10 +0000)
commit6b4a3a77001e79e08752d3115546810f7cd2fb62
tree4deb1da6f4d5d610e4a49cc50718b121a4cf81ab
parent8e4862b42261e4037c2c3fd8fb62a779efd93b12
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