forked from sqlancer/sqlancer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathYSQLSimilarTo.java
More file actions
39 lines (29 loc) · 941 Bytes
/
YSQLSimilarTo.java
File metadata and controls
39 lines (29 loc) · 941 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
package sqlancer.yugabyte.ysql.ast;
import sqlancer.yugabyte.ysql.YSQLSchema.YSQLDataType;
public class YSQLSimilarTo implements YSQLExpression {
private final YSQLExpression string;
private final YSQLExpression similarTo;
private final YSQLExpression escapeCharacter;
public YSQLSimilarTo(YSQLExpression string, YSQLExpression similarTo, YSQLExpression escapeCharacter) {
this.string = string;
this.similarTo = similarTo;
this.escapeCharacter = escapeCharacter;
}
public YSQLExpression getString() {
return string;
}
public YSQLExpression getSimilarTo() {
return similarTo;
}
public YSQLExpression getEscapeCharacter() {
return escapeCharacter;
}
@Override
public YSQLDataType getExpressionType() {
return YSQLDataType.BOOLEAN;
}
@Override
public YSQLConstant getExpectedValue() {
return null;
}
}