From e8b91d184a116b7e02d06bc47b7c3666c1101322 Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Thu, 22 Apr 2021 18:40:33 +0900 Subject: [PATCH] Replace `NativeException` with `Java::JavaSql::SQLException` This pull request addresses this warning. https://travis-ci.com/github/rsim/ruby-plsql/jobs/483335621 ``` /home/travis/build/rsim/ruby-plsql/spec/spec_helper.rb:88: warning: constant ::NativeException is deprecated ``` Refer https://github.com/rsim/oracle-enhanced/pull/1761/files --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 90ff90ae..2f3295c9 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -85,7 +85,7 @@ def get_connection(user_number = 0) OCI8.new(database_user, database_password, get_connection_url) end else - try_to_connect(NativeException) do + try_to_connect(Java::JavaSql::SQLException) do java.sql.DriverManager.getConnection(get_connection_url, database_user, database_password) end end