[JIRA] Created: (ACTIVERECORD_JDBC-98) JdbcConnection#configure_jdbc doesn't actually fail if driver or url is not supplied
- From: "cjeris (JIRA)" <jira-no-reply@kenai.com>
- To: issues@activerecord-jdbc.kenai.com
- Subject: [JIRA] Created: (ACTIVERECORD_JDBC-98) JdbcConnection#configure_jdbc doesn't actually fail if driver or url is not supplied
- Date: Wed, 3 Mar 2010 17:14:12 +0000 (GMT+00:00)
JdbcConnection#configure_jdbc doesn't actually fail if driver or url is not
supplied
------------------------------------------------------------------------------------
Key: ACTIVERECORD_JDBC-98
URL: http://kenai.com/jira/browse/ACTIVERECORD_JDBC-98
Project: activerecord-jdbc
Issue Type: Bug
Affects Versions: 0.9.2
Environment: Windows 2008 Enterprise Server, JRuby 1.4.0, Rails
2.3.5, AR-JDBC 0.9.2, Microsoft SQL Server 2005, MS SQL JDBC driver 2.0
Reporter: cjeris
Priority: Trivial
Attachments: patch1
If the 'url' connection property is neither supplied nor constructed along
the way, ActiveRecord::ConnectionAdapters::JdbcConnection#configure_jdbc is
supposed to fail raising ::ActiveRecord::ConnectionFailed, "jdbc adapter
requires driver class and url". It does not actually do this because the
values that are tested are the string conversions, not the properties
themselves, and nil.to_s == '' is a true value.
Patch supplied is against 0.9.2, but the same code is in 0.9.3.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://kenai.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
[JIRA] Created: (ACTIVERECORD_JDBC-98) JdbcConnection#configure_jdbc doesn't actually fail if driver or url is not supplied |
cjeris (JIRA) | 03/03/2010 |





