Skip to content

Commit

Permalink
bugfix int handling none oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
llsand committed Feb 28, 2020
1 parent ed056a1 commit deaa2ca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2031,16 +2031,7 @@ protected boolean isNumericDatatypeUnsignedSupported()

protected String getDatatypeName( DataType pData_typeNew )
{
switch (pData_typeNew) {
case INT:
case SMALLINT:
case TINYINT:
case MEDIUMINT:
case BIGINT:
return "integer";
default:
return pData_typeNew.name().toUpperCase();
}
return pData_typeNew.name().toUpperCase();
}

public void createColumn( StatementBuilder p, TableDiff pTableDiff, ColumnDiff pColumnDiff )
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
package de.opitzconsulting.orcas.diff;

import de.opitzconsulting.origOrcasDsl.DataType;

public class DdlBuilderOracle extends DdlBuilder
{
public DdlBuilderOracle( Parameters pParameters, DatabaseHandler pDatabaseHandler )
{
super( pParameters, pDatabaseHandler );
}

protected String getDatatypeName( DataType pData_typeNew )
{
switch (pData_typeNew) {
case INT:
case SMALLINT:
case TINYINT:
case MEDIUMINT:
case BIGINT:
return "integer";
default:
return super.getDatatypeName( pData_typeNew );
}
}
}

0 comments on commit deaa2ca

Please sign in to comment.