Navigation Menu

Skip to content

Commit

Permalink
0004397: Bit Support for Postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
vanmetjk committed May 21, 2020
1 parent 6ea3a61 commit 54d2aa4
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -45,7 +45,6 @@
import org.jumpmind.db.sql.ISqlRowMapper;
import org.jumpmind.db.sql.JdbcSqlTemplate;
import org.jumpmind.db.sql.Row;
import org.jumpmind.db.sql.SqlTemplateSettings;

/*
* Reads a database model from a PostgreSql database.
Expand Down Expand Up @@ -123,7 +122,10 @@ protected Integer mapUnknownJdbcTypeForColumn(Map<String, Object> values) {
return Types.BLOB;
} else if (type != null && (type == Types.STRUCT || type == Types.OTHER)) {
return Types.LONGVARCHAR;
} else {
} else if (typeName != null && typeName.equalsIgnoreCase("BIT")) {
return Types.VARCHAR;
}
else {
return super.mapUnknownJdbcTypeForColumn(values);
}
}
Expand Down

0 comments on commit 54d2aa4

Please sign in to comment.