Patches: Browse | Submit New | Admin

[#10021] Enabling ActiveRecord-JDBC Support for Sybase

Date:
2007-04-11 05:51
Priority:
3
Submitted By:
Mark Atkinson (msatkinson)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Enabling ActiveRecord-JDBC Support for Sybase

Detailed description
Ref; ActiveRecord-JDBC-0.2.3

Added Files:
ActiveRecord-JDBC-0.2.3/lib/jdbc_adapter/jdbc_sybase.rb

Updated Files:
ActiveRecord-JDBC-0.2.3/lib/active_record/connection_adapters/jdbc_adapter.rb
ActiveRecord-JDBC-0.2.3/lib/active_record/connection_adapters/jdbc_adapter_spec.rb

New Files:
ActiveRecord-JDBC-0.2.3/lib/jdbc_adapter/jdbc_sybase.rb

Todo:
Enable :database as a key in the ActiveRecord::Base.establish_connection hashset.

Update Details: jdbc_adapter.rb
Updated class JdbcAdapter ADAPTER_TYPES to include reference to new file jdbc_sybase.rb

Update Details: jdbc_adapter_spec.rb
Added reference to jdbc_sybase.rb

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-06-02 02:15
Sender: Leigh Kennedy

I have tried to take this code and get it running with the latest
version.  I have had partial success, but have run into a problem,
where the MS-SQL driver is always grabbing JTDS connections whether
or not the driver is set to sqlserver or sybase mode.  It seems
to me that the MSSQL Driver will need to be altered, or the MS-SQL
driver should be modified to support Sybase as well when the
JTDS driver is used.
I have worked around this for now by removing the "|tds"
from the MS-SQL driver, but this is not a real solution.  Not
sure what the right solution is.

Attached Files:

Name Description Download
jdbc_adapter.rb Download
jdbc_adapter_spec.rb Download
jdbc_sybase.rb Code sourced from ActiveRecord Sybase adapter Download

Changes:

Field Old Value Date By
File Added1815: jdbc_sybase.rb2007-04-11 05:54msatkinson
File Added1814: jdbc_adapter_spec.rb2007-04-11 05:53msatkinson
File Added1813: jdbc_adapter.rb2007-04-11 05:52msatkinson