Skip to content

Commit

Permalink
fix mysql type integer
Browse files Browse the repository at this point in the history
  • Loading branch information
muchun.tang committed Aug 23, 2024
1 parent fe88af9 commit 86bf63e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public class MysqlType {
private static final String INT = "INT";
private static final String INT_UNSIGNED = "INT UNSIGNED";
private static final String INT_UNSIGNED_ZEROFILL = "INT UNSIGNED ZEROFILL";
private static final String INTEGER = "INTEGER";
private static final String INTEGER_UNSIGNED = "INTEGER UNSIGNED";
private static final String INTEGER_UNSIGNED_ZEROFILL = "INTEGER UNSIGNED ZEROFILL";
private static final String BIGINT = "BIGINT";
private static final String SERIAL = "SERIAL";
private static final String BIGINT_UNSIGNED = "BIGINT UNSIGNED";
Expand Down Expand Up @@ -108,11 +111,14 @@ public static String toDorisType(String type, Integer length, Integer scale) {
case SMALLINT_UNSIGNED:
case SMALLINT_UNSIGNED_ZEROFILL:
case INT:
case INTEGER:
case MEDIUMINT:
case YEAR:
return DorisType.INT;
case INT_UNSIGNED:
case INT_UNSIGNED_ZEROFILL:
case INTEGER_UNSIGNED:
case INTEGER_UNSIGNED_ZEROFILL:
case MEDIUMINT_UNSIGNED:
case MEDIUMINT_UNSIGNED_ZEROFILL:
case BIGINT:
Expand Down

0 comments on commit 86bf63e

Please sign in to comment.