Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #1519 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

[PATCH] SQLServer adapter ODBC support.

Reported by: mark.imbriaco@pobox.com Assigned to: David
Priority: high Milestone: 1.0
Component: ActiveRecord Version: 0.12.1
Severity: normal Keywords: SQLServer
Cc:

Description

I have added ODBC support to the sqlserver adapter by way of an optional :mode parameter. If :mode is set to ODBC, an additional :dsn parameter is tested for and used in conjunction with :username and :password to establish a connection using DBI:ODBC. I'm attaching a diff to patch in this functionality as well as a connection.rb example for test/connections/native_sqlserver_odbc/.

If :mode is omitted, ADO is assumed and the adapter functions as it did previously.

Both the ADO and ODBC modes pass all the base tests. The ODBC mode fails the same tests in the full suite that the ADO version already failed.

Attachments

sqlserver_odbc.diff (5.5 kB) - added by mark.imbriaco@pobox.com on 06/26/05 21:37:26.
Diff for ODBC addition.
connection.rb (503 bytes) - added by mark.imbriaco@pobox.com on 06/26/05 21:38:03.
Template connection.rb, resides in test/connections/native_sqlserver_odbc/.

Change History

06/26/05 21:37:26 changed by mark.imbriaco@pobox.com

  • attachment sqlserver_odbc.diff added.

Diff for ODBC addition.

06/26/05 21:38:03 changed by mark.imbriaco@pobox.com

  • attachment connection.rb added.

Template connection.rb, resides in test/connections/native_sqlserver_odbc/.

06/26/05 21:42:38 changed by mark.imbriaco@pobox.com

  • summary changed from SQLServer adapter ODBC support. to [PATCH] QLServer adapter ODBC support..

Forgot to include [PATCH] in the summary.

06/26/05 21:43:04 changed by anonymous

  • summary changed from [PATCH] QLServer adapter ODBC support. to [PATCH] SQLServer adapter ODBC support..

07/01/05 17:18:57 changed by david

  • status changed from new to closed.
  • resolution set to fixed.

Included in #1569