Commit 6a6556f
authored
Support null_test and boolean_test node type with parsing (#335)
When the query like `SELECT col1 FROM t1 WHERE ((SELECT col2 FROM t2
LIMIT 1) IS NULL)` is passed, the subselect_items contain the item with
the null_test node type. This null_test node type could contain a table
name or a function potentially, but that node type is ignored currently,
therefore these table names or functions weren't properly extracted as
tables/functions of the query.
With this change, by adding the argument of null_test node to the
subselect_items list, the arg will be evaluated again later on and will
be properly handled. Similarly, support the boolean_test node too.1 parent 24597b2 commit 6a6556f
2 files changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
282 | 284 | | |
| 285 | + | |
| 286 | + | |
283 | 287 | | |
284 | 288 | | |
285 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1627 | 1627 | | |
1628 | 1628 | | |
1629 | 1629 | | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
1630 | 1650 | | |
1631 | 1651 | | |
1632 | 1652 | | |
| |||
0 commit comments