Skip to content

Commit

Permalink
avoid deprecated Java API
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Aug 23, 2016
1 parent b037c4a commit 0d1dcf5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/java/arjdbc/firebird/FirebirdRubyJdbcConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private static IRubyObject smallChar2ToRuby(
private final static int SMALL_CHAR_2 = 31431002;

@Override
protected ColumnData[] extractColumns(final Ruby runtime,
protected ColumnData[] extractColumns(final ThreadContext context,
final Connection connection, final ResultSet resultSet,
final boolean downCase) throws SQLException {

Expand All @@ -153,7 +153,6 @@ protected ColumnData[] extractColumns(final Ruby runtime,
} else {
name = caseConvertIdentifierForRails(connection, name);
}
final RubyString columnName = RubyString.newUnicodeString(runtime, name);

int columnType = resultMetaData.getColumnType(i);
if (columnType == Types.CHAR) {
Expand All @@ -167,7 +166,7 @@ else if ( prec == 2 ) {
}
}

columns[i - 1] = new ColumnData(columnName, columnType, i);
columns[i - 1] = new ColumnData(name, columnType, i);
}

return columns;
Expand Down

0 comments on commit 0d1dcf5

Please sign in to comment.