Skip to content

XML serialization is not correct for Oracle for negative operators - IN/LIKE/BETWEEN #24

Description

@cezar0001

Hi,
I have identified that the prepared XML tree for Oracle SQL is not entirely correct for operators NOT IN/NOT LIKE/NOT BETWEEN

  1. NOT IN - see the example below, in_expr tag contains the attribute not but the xsd doesn't specify it

Stmt - select * from table1 where name not in (1,2,3)
XML tree part

**** name name 1 2 3
  1. NOT LIKE/NOT BETWEEN
    Despite the fact that xsd defines that both these operators should contain attribute NOT, it is not populated for any of them (see example below)

Stmt - select * from table1 where name not between 1 and 2
XML tree part

<between_expr>
<first_expr expr_type="simple_object_name_t">
<column_referenced_expr>

<full_name>name</full_name>
<part_name>name</part_name>

</column_referenced_expr>
</first_expr>
<second_expr expr_type="simple_constant_t">
<constant_expr>

1

</constant_expr>
</second_expr>
<third_expr expr_type="simple_constant_t">
<constant_expr>

2

</constant_expr>
</third_expr>
</between_expr>

Thanks

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions