Skip to content

Commit b2eed1e

Browse files
feat: syntax sugar
Signed-off-by: Andreas Reichel <andreas@manticore-projects.com>
1 parent 5f580af commit b2eed1e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/net/sf/jsqlparser/expression/ArrayConstructor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ public ArrayConstructor(ExpressionList<?> expressions, boolean arrayKeyword) {
3737
this.arrayKeyword = arrayKeyword;
3838
}
3939

40+
public ArrayConstructor(Expression... expressions) {
41+
this(new ExpressionList<Expression>(expressions), false);
42+
}
43+
4044
@Override
4145
public void accept(ExpressionVisitor expressionVisitor) {
4246
expressionVisitor.visit(this);

0 commit comments

Comments
 (0)