• Tom Lane's avatar
    Make LIKE throw an error if the escape character is at the end of the pattern · 3d8fd757
    Tom Lane authored
    (ie, has nothing to quote), rather than silently ignoring the character as has
    been our historical behavior.  This is required by SQL spec and should help
    reduce the sort of user confusion seen in bug #4436.  Per discussion.
    
    This is not so much a bug fix as a definitional change, and it could break
    existing applications; so not back-patched.  It might deserve being mentioned
    as an incompatibility in the 8.4 release notes.
    3d8fd757
like_match.c 8.78 KB