From e7339dd5608a73d1d514ee9aec80e9fc672718da Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Mon, 20 Apr 2026 08:55:14 +0900 Subject: [PATCH] Remove unused result_new local in get_ruby_value_from_result_set Running specs under `RUBYOPT=-w` (e.g. JRuby head CI) surfaced: lib/plsql/jdbc_connection.rb:381: warning: assigned but unused variable - result_new The variable was assigned but never read; the method already returned the converted value. Dropping the assignment silences the warning without changing behavior. Co-Authored-By: Claude Opus 4.7 (1M context) --- lib/plsql/jdbc_connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plsql/jdbc_connection.rb b/lib/plsql/jdbc_connection.rb index 478b81a..9387263 100644 --- a/lib/plsql/jdbc_connection.rb +++ b/lib/plsql/jdbc_connection.rb @@ -378,7 +378,7 @@ def get_bind_variable(stmt, i, type) def get_ruby_value_from_result_set(rset, i, metadata) ruby_type = SQL_TYPE_TO_RUBY_CLASS[metadata[:sql_type]] ora_value = get_bind_variable(rset, i, ruby_type) - result_new = ora_value_to_ruby_value(ora_value) + ora_value_to_ruby_value(ora_value) end def result_set_to_ruby_data_type(column_type, column_type_name)