Skip to content

Commit

Permalink
Merge pull request CodePhiliaX#1243 from openai0229/fix-dm-DCE
Browse files Browse the repository at this point in the history
fix-dm-DCE
  • Loading branch information
Chat2DB-Pro authored Mar 22, 2024
2 parents 71d2704 + d32d954 commit b659b69
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public enum DMColumnTypeEnum implements ColumnBuilder {
DATE("DATE", false, false, true, false, false, false, true, true, false, false),

DECIMAL("DECIMAL", true, true, true, false, false, false, true, true, false, false),
DEC("DEC", true, true, true, false, false, false, true, true, false, false),

DOUBLE("DOUBLE", false, false, true, false, false, false, true, true, false, false),

Expand Down Expand Up @@ -221,7 +222,7 @@ private String buildDataType(TableColumn column, DMColumnTypeEnum type) {
return script.toString();
}

if (Arrays.asList(DECIMAL, FLOAT, NUMBER, TIMESTAMP, NUMBERIC).contains(type)) {
if (Arrays.asList(DECIMAL,DEC, FLOAT, NUMBER, TIMESTAMP, NUMBERIC).contains(type)) {
StringBuilder script = new StringBuilder();
script.append(columnType);
if (column.getColumnSize() != null && column.getDecimalDigits() == null) {
Expand Down

0 comments on commit b659b69

Please sign in to comment.