forked from sqlancer/sqlancer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPostgresPostfixText.java
More file actions
37 lines (29 loc) · 911 Bytes
/
PostgresPostfixText.java
File metadata and controls
37 lines (29 loc) · 911 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
package sqlancer.postgres.ast;
import sqlancer.postgres.PostgresSchema.PostgresDataType;
public class PostgresPostfixText implements PostgresExpression {
private final PostgresExpression expr;
private final String text;
private final PostgresConstant expectedValue;
private final PostgresDataType type;
public PostgresPostfixText(PostgresExpression expr, String text, PostgresConstant expectedValue,
PostgresDataType type) {
this.expr = expr;
this.text = text;
this.expectedValue = expectedValue;
this.type = type;
}
public PostgresExpression getExpr() {
return expr;
}
public String getText() {
return text;
}
@Override
public PostgresConstant getExpectedValue() {
return expectedValue;
}
@Override
public PostgresDataType getExpressionType() {
return type;
}
}