Re: Escaping of characters in like/likeIgnoreCase expressions

From: Michael Gentry (mgentr..asslight.net)
Date: Wed Aug 25 2010 - 13:21:35 UTC

  • Next message: Andrus Adamchik: "Re: Escaping of characters in like/likeIgnoreCase expressions"

    Hi Victor,

    What does your Expression.fromString() look like?

    If I recall correctly, a % or _ in the substitution map will
    automatically be escaped for you, but the actual fromString("...")
    part will not.

    mrg

    On Wed, Aug 25, 2010 at 8:48 AM, Victor Antonovich
    <v.antonovic..mail.com> wrote:
    > Hello!
    >
    > What is correct way of escaping of '%' and '_' characters in query
    > like/likeIgnoreCase expressions? Looks like escape chars can be specified
    > when Expression instances are created using ExpressionFactory methods, but
    > what about expression string representation to use with
    > Expression.fromString() method?
    >
    > Thanks,
    > Victor.
    >



    This archive was generated by hypermail 2.0.0 : Wed Aug 25 2010 - 13:22:43 UTC