Skip to content

Commit 2ed71c3

Browse files
committed
Fix union operator
1 parent ce0e951 commit 2ed71c3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/sqlancer/postgres/ast/PostgresBinaryRangeOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class PostgresBinaryRangeOperation extends BinaryNode<PostgresExpression>
1010
private final String op;
1111

1212
public enum PostgresBinaryRangeOperator implements Operator {
13-
UNION("*"), INTERSECTION("*"), DIFFERENCE("-");
13+
UNION("+"), INTERSECTION("*"), DIFFERENCE("-");
1414

1515
private final String textRepresentation;
1616

src/sqlancer/postgres/gen/PostgresCommon.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ public static void addCommonRangeExpressionErrors(ExpectedErrors errors) {
114114
errors.add("result of range difference would not be contiguous");
115115
errors.add("out of range");
116116
errors.add("malformed range literal");
117+
errors.add("result of range union would not be contiguous");
117118
}
118119

119120
public static void addCommonInsertUpdateErrors(ExpectedErrors errors) {

0 commit comments

Comments
 (0)