Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
set jdbc type name in readTable()
  • Loading branch information
erilong committed Apr 20, 2012
1 parent 2c9ce7a commit 8cd2fea
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -564,8 +564,9 @@ public Table execute(Connection connection) throws SQLException {
table.setName(tableName);
for (int i = 1; i <= rsm.getColumnCount(); i++) {
Column column = new Column(rsm.getColumnName(i));
column.setJdbcTypeCode(rsm.getColumnType(i));
column.setTypeCode(rsm.getColumnType(i));
column.setJdbcTypeCode(rsm.getColumnType(i));
column.setJdbcTypeName(column.getType());
column.setRequired(rsm.isNullable(i) == 0);
column.setScale(rsm.getScale(i));
column.setPrecisionRadix(rsm.getPrecision(i));
Expand Down

0 comments on commit 8cd2fea

Please sign in to comment.