Skip to content

Commit

Permalink
feat: add syntax sugar
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Reichel <[email protected]>
  • Loading branch information
manticore-projects committed Jun 10, 2024
1 parent 1ad4234 commit 2ace74d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ public IntervalExpression(boolean intervalKeyword) {
this.intervalKeyword = intervalKeyword;
}

public IntervalExpression(int value, String type) {
this.parameter = null;
this.intervalKeyword = true;
this.expression = new LongValue(value);
this.intervalType = type;
}

public boolean isUsingIntervalKeyword() {
return intervalKeyword;
}
Expand Down

0 comments on commit 2ace74d

Please sign in to comment.