public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/ddollar/rails.git
Search Repo:
Made documentation ready for release (AR)

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1733 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
dhh (author)
Wed Jul 06 03:14:58 -0700 2005
commit  17f7f8a091657a2192106668f00e74c6d70c0614
tree    f66793b16c762a1edc2cb5f3c3eefb63099decde
parent  bde3df2bec99103eeb91c4caaf0483aacadccd92
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-*SVN*
0
+*1.11.0* (5th July, 2005)
0
 
0
 * Changed logging of SQL statements to use the DEBUG level instead of INFO
0
 
...
96
97
98
99
 
100
101
102
...
112
113
114
115
 
116
117
118
...
96
97
98
 
99
100
101
102
...
112
113
114
 
115
116
117
118
0
@@ -96,7 +96,7 @@ module ActiveRecord
0
     # * You can add an object to a collection without automatically saving it by using the #collection.build method (documented below).
0
     # * All unsaved (new_record? == true) members of the collection are automatically saved when the parent is saved.
0
     #
0
- # === Callbacks
0
+ # === Association callbacks
0
     #
0
     # Similiar to the normal callbacks that hook into the lifecycle of an Active Record object, you can also define callbacks that get
0
     # trigged when you add an object to or removing an object from a association collection. Example:
0
@@ -112,7 +112,7 @@ module ActiveRecord
0
     # It's possible to stack callbacks by passing them as an array. Example:
0
     #
0
     # class Project
0
- # has_and_belongs_to_many :developers, :after_add => [:evaluate_velocity, Proc.new {|project, developer| project.shipping_date = Time.now}]
0
+ # has_and_belongs_to_many :developers, :after_add => [:evaluate_velocity, Proc.new { |p, d| p.shipping_date = Time.now}]
0
     # end
0
     #
0
     # Possible callbacks are: before_add, after_add, before_remove and after_remove.
...
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
...
160
161
162
 
163
164
165
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
167
168
...
11
12
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
15
16
...
119
120
121
122
123
 
 
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
0
@@ -11,47 +11,6 @@ require 'active_record/connection_adapters/abstract_adapter'
0
 # Modifications (ODBC): Mark Imbriaco <mark.imbriaco@pobox.com>
0
 # Date: 6/26/2005
0
 #
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
-#
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
-# to
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
-#
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
-#
0
-# Options:
0
-#
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
-#
0
-# ADO specific options:
0
-#
0
-# * <tt>:host</tt> -- Defaults to localhost.
0
-# * <tt>:database</tt> -- The name of the database. No default, must be provided.
0
-#
0
-# ODBC specific options:
0
-#
0
-# * <tt>:dsn</tt> -- Defaults to nothing.
0
-#
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
-#
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
-#
0
 module ActiveRecord
0
   class Base
0
     def self.sqlserver_connection(config) #:nodoc:
0
@@ -160,9 +119,48 @@ module ActiveRecord
0
           end
0
         end
0
       end
0
+ end
0
 
0
- end #class ColumnWithIdentity < Column
0
-
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
+ #
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
+ # to
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
+ #
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
+ #
0
+ # Options:
0
+ #
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
+ #
0
+ # ADO specific options:
0
+ #
0
+ # * <tt>:host</tt> -- Defaults to localhost.
0
+ # * <tt>:database</tt> -- The name of the database. No default, must be provided.
0
+ #
0
+ # ODBC specific options:
0
+ #
0
+ # * <tt>:dsn</tt> -- Defaults to nothing.
0
+ #
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
+ #
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
0
         {
...
1
2
 
3
4
5
...
56
57
58
59
 
60
61
62
...
1
 
2
3
4
5
...
56
57
58
 
59
60
61
62
0
@@ -1,5 +1,5 @@
0
 module ActiveRecord
0
- class QueryCache
0
+ class QueryCache #:nodoc:
0
     def initialize(connection)
0
       @connection = connection
0
       @query_cache = {}
0
@@ -56,7 +56,7 @@ module ActiveRecord
0
     end
0
   end
0
   
0
- class AbstractAdapter
0
+ class AbstractAdapter #:nodoc:
0
     # Stub method to be able to treat the connection the same whether the query cache has been turned on or not
0
     def clear_query_cache
0
     end

Comments

    No one has commented yet.