Skip to content

Commit

Permalink
Make CreateTableStatement backward compatible (#4354)
Browse files Browse the repository at this point in the history
#4322 Add four arguments constructor to CreateTableStatement for backward compatibility.

Amend #3108.

Co-authored-by: Daniel Mallorga <75833793+MalloD12@users.noreply.github.com>
  • Loading branch information
jccampanero and MalloD12 committed Jun 28, 2023
1 parent 1da48b5 commit 36f2c30
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,17 @@ in line with the column (this implies that a NN constraint can always affects ex
private final Set<String> computedColumns = new HashSet<>();

public CreateTableStatement(String catalogName, String schemaName, String tableName) {
this.catalogName = catalogName;
this.schemaName = schemaName;
this.tableName = tableName;
this(catalogName, schemaName, tableName, null, null);
}

public CreateTableStatement(String catalogName, String schemaName, String tableName, String remarks) {
this(catalogName, schemaName, tableName, remarks, null);
}

public CreateTableStatement(String catalogName, String schemaName, String tableName, String remarks, String tableType) {
this(catalogName, schemaName, tableName);
this.catalogName = catalogName;
this.schemaName = schemaName;
this.tableName = tableName;
this.remarks = remarks;
this.tableType = tableType;
}
Expand Down

0 comments on commit 36f2c30

Please sign in to comment.