Skip to content

[FEATURE] support expressions where after called function two and more fields can be called #1742

Closed
@nikolayandr

Description

@nikolayandr

Grammar or Syntax Description

  • Allow defining calling of function where returned attribute also might have inner attributes
  • Example: f1(arguments).f2.f3 = 1 clause is not supported yet

SQL Example

  • Simplified Query Example, focusing on the failing feature
    f1(arguments).f2.f3 = 1

  • net.sf.jsqlparser.JSQLParserException: Encountered unexpected token: "=" "=" at line 1, column 21. Was expecting one of: "("

Additional context

used version: 4.6

Tips:

Use net.sf.jsqlparser.parser.CCJSqlParserUtil#parseCondExpression(java.lang.String) to parse condition
The current workaround to get it somehow working is: f1(arguments).f2.f3() = 1

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