Bugs item #20472, was opened at 2008-06-02 12:41
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=20472&group_id=2014

Category: AR-JDBC
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Leigh Kennedy (lkennedy)
Assigned to: Nobody (None)
Summary: jdbc_mssql.rb owns all JTDS connections

Initial Comment:
I was trying to get Sybase support up and running via the JTDS driver.  This 
driver supports both Sybase and MS-SQL server.  

It seems to me that the way the driver has been implemented any connection 
using the JTDS driver will automatically pass to the ms driver.  I may be 
wrong, but I'm guessing it processes them in the order listed in the 
jdbc_adapter_spec.rb file.  

Any ideas on how to have one jdbc driver support 2 databases ?  

Change this around would just move the problem as far as I can see.

Eg:

(from jdbc_mssql.rb)
[/sqlserver|tds/i, lambda {|cfg,adapt| adapt.extend(::JdbcSpec::MsSQL)}]

(from jdbc_sybase.rb - what I'm working on, which is based on the above)
[/sybase|tds/i, lambda {|cfg,adapt| adapt.extend(::JdbcSpec::Sybase)}]


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=20472&group_id=2014
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to