File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
src/main/java/net/sf/jsqlparser/statement/select Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
package net .sf .jsqlparser .statement .select ;
11
11
12
+ import net .sf .jsqlparser .expression .Alias ;
13
+
12
14
/**
13
15
* lateral sub select
14
16
*
@@ -22,7 +24,21 @@ public LateralSubSelect() {
22
24
}
23
25
24
26
public LateralSubSelect (String prefix ) {
27
+ this (prefix , null , null );
28
+ }
29
+
30
+ public LateralSubSelect (String prefix , Select select ) {
31
+ this (prefix , select , null );
32
+ }
33
+
34
+ public LateralSubSelect (Select select , Alias alias ) {
35
+ this ("LATERAL" , select , alias );
36
+ }
37
+
38
+ public LateralSubSelect (String prefix , Select select , Alias alias ) {
25
39
this .prefix = prefix ;
40
+ this .select = select ;
41
+ this .alias = alias ;
26
42
}
27
43
28
44
public String getPrefix () {
@@ -43,6 +59,11 @@ public LateralSubSelect withSelect(Select select) {
43
59
return this ;
44
60
}
45
61
62
+ public LateralSubSelect withAlias (Alias alias ) {
63
+ setAlias (alias );
64
+ return this ;
65
+ }
66
+
46
67
public String toString () {
47
68
return prefix + super .toString ();
48
69
}
You can’t perform that action at this time.
0 commit comments