Skip to content

Commit

Permalink
feat: Syntax sugar
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Reichel <andreas@manticore-projects.com>
  • Loading branch information
manticore-projects committed Apr 14, 2024
1 parent 8461e8a commit 67bfae6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ public CastExpression(String keyword, Expression leftExpression, String dataType
}

// Implicit Cast
public CastExpression(String dataType, String value) {
this.keyword = null;
this.isImplicitCast = true;
this.colDataType = new ColDataType(dataType);
this.leftExpression = new StringValue(value);
}

public CastExpression(ColDataType colDataType, String value) {
this.keyword = null;
this.isImplicitCast = true;
Expand Down

0 comments on commit 67bfae6

Please sign in to comment.