Skip to content

Commit 5cf87ca

Browse files
committed
use RubyArray's append instead of List#add
1 parent 3201df4 commit 5cf87ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java/arjdbc/jdbc/RubyJdbcConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,7 @@ protected IRubyObject mapToResult(final ThreadContext context, final Ruby runtim
15561556
final RubyArray resultRows = runtime.newArray();
15571557

15581558
while ( resultSet.next() ) {
1559-
resultRows.add( resultHandler.mapRow(context, runtime, columns, resultSet, this) );
1559+
resultRows.append( resultHandler.mapRow(context, runtime, columns, resultSet, this) );
15601560
}
15611561

15621562
return resultHandler.newResult(context, runtime, columns, resultRows);

0 commit comments

Comments
 (0)