Skip to content

[BUG] statement with input user parameter cannot be parsed #1785

Description

@csakhogy

Failing SQL Feature:

SQl Statement including an input parameter (that is being defined via user prompt during execution) cannot be parsed and throws ParseException: Encountered unexpected token "=" "="

SQL Example:

select * from all_tables
where owner = &myowner

Note: AFAIK such input parameter might also contain a dot at the end (e.g. &myowner.).

Software Information:

  • JSqlParser version 4.60
  • Oracle v19

Activity

  1. added a commit that references this issue on May 11, 2023
    c07a43b
  2. manticore-projects commented on May 11, 2023

    @manticore-projects
    Contributor

    Greetings.

    I have amended the JDBCNamedParameter to support the & character, but no way the parameter's name will end with a . since it is used as list separator for name fragments.

  3. added a commit that references this issue on Jun 15, 2023
    a815f5f
  4. added a commit that references this issue on Jun 27, 2023
    c79dfff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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