Fix LIKE's special-case code for % followed by _. I'm not entirely sure that
commit869cf682ff8edd8b1258fc6a774603c6af01b199
authortgl <tgl>
Sun, 24 May 2009 18:10:38 +0000 (24 18:10 +0000)
committertgl <tgl>
Sun, 24 May 2009 18:10:38 +0000 (24 18:10 +0000)
tree1d4ea5943e05e0ed8cb9210730d5d267fc5fd9e7
parentcce1335243db060598c82c081139e7f103e46a3f
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