Repository navigation
Commit 0cf6f83
committed
Keep columns named table and print every clause of TABLE t
- `(TABLE` starts a sub-select only when a table name follows and then
the end of the query, so `(table = 'hits')` and `(table)` stay
expressions on a column named table. `FROM (TABLE s.t) x` now parses.
- A parenthesized `FROM t` without clauses stays a `FromQuery`.
- `TableStatement` uses `Select.appendTo`, and its deparser prints
OPTION, FETCH and the isolation level, so `TABLE t FETCH FIRST 1 ROWS
ONLY` keeps its FETCH.
- `CREATE TABLE ... AS` takes any query, including `TABLE a UNION TABLE b`.1 parent c62e4ee commit 0cf6f83
4 files changed
Lines changed: 53 additions & 28 deletions
File tree
- src
- main
- java/net/sf/jsqlparser
- statement/select
- util/deparser
- jjtree/net/sf/jsqlparser/parser
- test/java/net/sf/jsqlparser/statement/select
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 37 | | |
61 | 38 | | |
62 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
113 | 122 | | |
114 | 123 | | |
115 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
| 749 | + | |
749 | 750 | | |
750 | 751 | | |
751 | 752 | | |
| |||
777 | 778 | | |
778 | 779 | | |
779 | 780 | | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
780 | 803 | | |
781 | 804 | | |
782 | 805 | | |
783 | 806 | | |
784 | | - | |
| 807 | + | |
785 | 808 | | |
786 | | - | |
| 809 | + | |
787 | 810 | | |
788 | 811 | | |
789 | 812 | | |
| |||
1408 | 1431 | | |
1409 | 1432 | | |
1410 | 1433 | | |
1411 | | - | |
| 1434 | + | |
1412 | 1435 | | |
1413 | | - | |
| 1436 | + | |
1414 | 1437 | | |
1415 | 1438 | | |
1416 | 1439 | | |
| |||
15849 | 15872 | | |
15850 | 15873 | | |
15851 | 15874 | | |
15852 | | - | |
| 15875 | + | |
15853 | 15876 | | |
15854 | 15877 | | |
15855 | 15878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
852 | 868 | | |
0 commit comments