Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2633

Error matching patterns that follow the LIKE syntax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.4.1
    • 0.9.6
    • FUN - Functions
    • None

    Description

      '+0300' like "+03%"

      fails with

      ASX1001: Syntax error: In line 1 >>'+0300' like "+03%"<< Encountered  at column 19.  [CompilationException]
      

      and

      '?0300' like "?03%"

      fails with

      ASX1001: Syntax error: In line 1 >>'?0300' like "?03%"<< Encountered  at column 19.  [CompilationException]
      

      as the characters '+' and '?' are not escaped when translating the LIKE syntax to Java's regex syntax.

      Attachments

        Activity

          People

            tillw Till Westmann
            tillw Till Westmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: