Skip to content

Commit 543c2ea

Browse files
yahondaclaude
andcommitted
Mention ojdbc11/ojdbc17 in the NameError LoadError message
When Java::oracle.jdbc.OracleDriver resolves a NameError because the Oracle JDBC jar is missing from the classpath, include a short hint telling the user which jars to install. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ea19a2d commit 543c2ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/plsql/jdbc_connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class JDBCConnection < Connection # :nodoc:
5151
ORACLE_DRIVER = Java::oracle.jdbc.OracleDriver.new
5252
java.sql.DriverManager.registerDriver ORACLE_DRIVER
5353
rescue NameError
54-
raise LoadError, "ERROR: ruby-plsql could not load Oracle JDBC driver."
54+
raise LoadError, "ERROR: ruby-plsql could not load Oracle JDBC driver. Please install ojdbc11.jar or ojdbc17.jar."
5555
end
5656

5757
def self.create_raw(params)

0 commit comments

Comments
 (0)