0
@@ -11,47 +11,6 @@ require 'active_record/connection_adapters/abstract_adapter'
0
# Modifications (ODBC): Mark Imbriaco <mark.imbriaco@pobox.com>
0
-# In ADO mode, this adapter will ONLY work on Windows systems,
0
-# since it relies on Win32OLE, which, to my knowledge, is only
0
-# available on Windows.
0
-# This mode also relies on the ADO support in the DBI module. If you are using the
0
-# one-click installer of Ruby, then you already have DBI installed, but
0
-# the ADO module is *NOT* installed. You will need to get the latest
0
-# source distribution of Ruby-DBI from http://ruby-dbi.sourceforge.net/
0
-# unzip it, and copy the file
0
-# <tt>src/lib/dbd_ado/ADO.rb</tt>
0
-# <tt>X:/Ruby/lib/ruby/site_ruby/1.8/DBD/ADO/ADO.rb</tt>
0
-# (you will more than likely need to create the ADO directory).
0
-# Once you've installed that file, you are ready to go.
0
-# In ODBC mode, the adapter requires the ODBC support in the DBI module which requires
0
-# the Ruby ODBC module. Ruby ODBC 0.996 was used in development and testing,
0
-# and it is available at http://www.ch-werner.de/rubyodbc/
0
-# * <tt>:mode</tt> -- ADO or ODBC. Defaults to ADO.
0
-# * <tt>:username</tt> -- Defaults to sa.
0
-# * <tt>:password</tt> -- Defaults to empty string.
0
-# ADO specific options:
0
-# * <tt>:host</tt> -- Defaults to localhost.
0
-# * <tt>:database</tt> -- The name of the database. No default, must be provided.
0
-# ODBC specific options:
0
-# * <tt>:dsn</tt> -- Defaults to nothing.
0
-# ADO code tested on Windows 2000 and higher systems,
0
-# running ruby 1.8.2 (2004-07-29) [i386-mswin32], and SQL Server 2000 SP3.
0
-# ODBC code tested on a Fedora Core 4 system, running FreeTDS 0.63,
0
-# unixODBC 2.2.11, Ruby ODBC 0.996, Ruby DBI 0.0.23 and Ruby 1.8.2.
0
-# [Linux strongmad 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 i686 i386 GNU/Linux]
0
def self.sqlserver_connection(config) #:nodoc:
0
@@ -160,9 +119,48 @@ module ActiveRecord
0
- end #class ColumnWithIdentity < Column
0
+ # In ADO mode, this adapter will ONLY work on Windows systems,
0
+ # since it relies on Win32OLE, which, to my knowledge, is only
0
+ # available on Windows.
0
+ # This mode also relies on the ADO support in the DBI module. If you are using the
0
+ # one-click installer of Ruby, then you already have DBI installed, but
0
+ # the ADO module is *NOT* installed. You will need to get the latest
0
+ # source distribution of Ruby-DBI from http://ruby-dbi.sourceforge.net/
0
+ # unzip it, and copy the file
0
+ # <tt>src/lib/dbd_ado/ADO.rb</tt>
0
+ # <tt>X:/Ruby/lib/ruby/site_ruby/1.8/DBD/ADO/ADO.rb</tt>
0
+ # (you will more than likely need to create the ADO directory).
0
+ # Once you've installed that file, you are ready to go.
0
+ # In ODBC mode, the adapter requires the ODBC support in the DBI module which requires
0
+ # the Ruby ODBC module. Ruby ODBC 0.996 was used in development and testing,
0
+ # and it is available at http://www.ch-werner.de/rubyodbc/
0
+ # * <tt>:mode</tt> -- ADO or ODBC. Defaults to ADO.
0
+ # * <tt>:username</tt> -- Defaults to sa.
0
+ # * <tt>:password</tt> -- Defaults to empty string.
0
+ # ADO specific options:
0
+ # * <tt>:host</tt> -- Defaults to localhost.
0
+ # * <tt>:database</tt> -- The name of the database. No default, must be provided.
0
+ # ODBC specific options:
0
+ # * <tt>:dsn</tt> -- Defaults to nothing.
0
+ # ADO code tested on Windows 2000 and higher systems,
0
+ # running ruby 1.8.2 (2004-07-29) [i386-mswin32], and SQL Server 2000 SP3.
0
+ # ODBC code tested on a Fedora Core 4 system, running FreeTDS 0.63,
0
+ # unixODBC 2.2.11, Ruby ODBC 0.996, Ruby DBI 0.0.23 and Ruby 1.8.2.
0
+ # [Linux strongmad 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 i686 i386 GNU/Linux]
0
class SQLServerAdapter < AbstractAdapter
0
def native_database_types
Comments
No one has commented yet.