forked from sqlancer/sqlancer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPostgresSimilarTo.java
More file actions
40 lines (30 loc) · 1011 Bytes
/
PostgresSimilarTo.java
File metadata and controls
40 lines (30 loc) · 1011 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
package sqlancer.postgres.ast;
import sqlancer.postgres.PostgresSchema.PostgresDataType;
public class PostgresSimilarTo implements PostgresExpression {
private final PostgresExpression string;
private final PostgresExpression similarTo;
private final PostgresExpression escapeCharacter;
public PostgresSimilarTo(PostgresExpression string, PostgresExpression similarTo,
PostgresExpression escapeCharacter) {
this.string = string;
this.similarTo = similarTo;
this.escapeCharacter = escapeCharacter;
}
public PostgresExpression getString() {
return string;
}
public PostgresExpression getSimilarTo() {
return similarTo;
}
public PostgresExpression getEscapeCharacter() {
return escapeCharacter;
}
@Override
public PostgresDataType getExpressionType() {
return PostgresDataType.BOOLEAN;
}
@Override
public PostgresConstant getExpectedValue() {
return null;
}
}