-
Notifications
You must be signed in to change notification settings - Fork 397
Expand file tree
/
Copy pathMySQLSelect.java
More file actions
42 lines (30 loc) · 949 Bytes
/
MySQLSelect.java
File metadata and controls
42 lines (30 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package sqlancer.mysql.ast;
import java.util.Collections;
import java.util.List;
import sqlancer.common.ast.SelectBase;
public class MySQLSelect extends SelectBase<MySQLExpression> implements MySQLExpression {
private SelectType fromOptions = SelectType.ALL;
private List<String> modifiers = Collections.emptyList();
public enum SelectType {
DISTINCT, ALL, DISTINCTROW;
}
public void setSelectType(SelectType fromOptions) {
this.setFromOptions(fromOptions);
}
public SelectType getFromOptions() {
return fromOptions;
}
public void setFromOptions(SelectType fromOptions) {
this.fromOptions = fromOptions;
}
public void setModifiers(List<String> modifiers) {
this.modifiers = modifiers;
}
public List<String> getModifiers() {
return modifiers;
}
@Override
public MySQLConstant getExpectedValue() {
return null;
}
}