Skip to content

<S_CHAR_LITERAL> wrongly matches the chars with ' #1172

Closed
@ZhaoRuidong

Description

@ZhaoRuidong

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. Example SQL
    SELECT A ALIA1, CASE WHEN B LIKE 'ABC\_%' ESCAPE '\' THEN 'DEF' ELSE 'CCCC' END AS OBJ_SUB_TYPE FROM TABLE2

Expected behavior
<S_CHAR_LITERAL> should match the [ '\' ] rather than [ '' THEN ']

System

  • Database you are using Oracle
  • Java Version 1.8
  • JSqlParser version 4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions