Skip to content

Commit

Permalink
0002069: MySqlBuilder support for auto increment columns that come ac…
Browse files Browse the repository at this point in the history
…ross as decimal type, now mapped to bigint.
  • Loading branch information
chenson42 committed Nov 19, 2014
1 parent c9c53de commit 6dd1cb9
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -315,8 +315,9 @@ protected void processColumnChange(Table sourceTable, Table targetTable, Column
@Override
protected String getSqlType(Column column) {
String sqlType = super.getSqlType(column);

if (column.isAutoIncrement() && column.getMappedTypeCode() == Types.DECIMAL) {

if (column.isAutoIncrement()
&& (column.getMappedTypeCode() == Types.DECIMAL || column.getMappedTypeCode() == Types.NUMERIC)) {
sqlType = "BIGINT";
}
return sqlType;
Expand Down

0 comments on commit 6dd1cb9

Please sign in to comment.