Skip to content

Commit

Permalink
Fix failing mysql test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarrez committed Jul 18, 2024
1 parent 703ce12 commit e7f6d91
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ protected Map<String, String> internalGetColumnMetaData(String tableName) {

Map<String, String> columnNameToTypeMap = new HashMap<>();

if (databaseType.equals(AbstractEngineConfiguration.DATABASE_TYPE_MSSQL) && StringUtils.isEmpty(catalog)) {
if (StringUtils.isEmpty(catalog) &&
(databaseType.equals(AbstractEngineConfiguration.DATABASE_TYPE_MSSQL)
|| databaseType.equals(AbstractEngineConfiguration.DATABASE_TYPE_MYSQL))
) {
catalog = null; // Otherwise SQL server errors out
}

Expand Down Expand Up @@ -239,6 +242,7 @@ protected Map<String, String> internalGetColumnMetaData(String tableName) {
columnType = EntityParameterTypesOverview.PARAMETER_TYPE_BIGINT;

} else if (columnType.equalsIgnoreCase("bit")
|| columnType.equalsIgnoreCase("SMALLINT")
|| columnType.equalsIgnoreCase("TINYINT") // mariadb
|| columnType.equalsIgnoreCase("NUMBER") // oracle
|| columnType.equalsIgnoreCase("bool")) { // postgres
Expand Down

0 comments on commit e7f6d91

Please sign in to comment.