Repository navigation
Commit 4dff61a
authored
fix: find tables in SET values instead of throwing (#2873)
TablesNamesFinder threw UnsupportedOperationException for every SET
statement except SQL Server ON/OFF options. A MySQL trigger whose body
is or contains SET, such as FOR EACH ROW SET NEW.a = ..., failed the
same way, although its table is known.
The finder now visits the value expressions of each assignment, so a
subquery in a SET value reports its tables and other SET statements
report none.
Signed-off-by: minleejae <mmj9808@gmail.com>1 parent 1e0e858 commit 4dff61a
2 files changed
Lines changed: 28 additions & 2 deletions
File tree
- src
- main/java/net/sf/jsqlparser/util
- test/java/net/sf/jsqlparser/util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1950 | 1950 | | |
1951 | 1951 | | |
1952 | 1952 | | |
1953 | | - | |
1954 | | - | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
1955 | 1960 | | |
1956 | 1961 | | |
1957 | 1962 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
395 | 416 | | |
396 | 417 | | |
397 | 418 | | |
| |||
0 commit comments