Jeremy Kemper
|
50ee332c4a
|
Cleanup SQLite AUTOINCREMENT: exclude sqlite_sequence table, factor out feature availability check.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5520 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-14 03:32:16 +00:00 |
|
Jeremy Kemper
|
fda4330ce9
|
Update Oracle performance credits.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-14 02:49:33 +00:00 |
|
Jeremy Kemper
|
4978d1dce7
|
Oracle: automatically detect the primary key. Closes #6594.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5514 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-13 19:23:32 +00:00 |
|
Jeremy Kemper
|
a303a168ac
|
Oracle: to increase performance, prefetch 100 rows and enable similar cursor sharing. Both are configurable in database.yml. Closes #6607.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5509 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-13 07:36:52 +00:00 |
|
Jeremy Kemper
|
c0bce43e90
|
Oracle: fix limited id selection for eager loading. Closes #6515.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5480 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-10 19:18:07 +00:00 |
|
Jeremy Kemper
|
63df6eb382
|
Don't inspect unloaded associations. Closes #2905.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5478 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-10 02:00:14 +00:00 |
|
Jeremy Kemper
|
d97a84fb59
|
SQLite: use AUTOINCREMENT primary key in >= 3.1.0. Closes #6588.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5477 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-09 21:17:43 +00:00 |
|
Jeremy Kemper
|
9d2da04680
|
Cache inheritance_column. Closes #6592.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-09 19:31:31 +00:00 |
|
Jeremy Kemper
|
66b92abfc3
|
Firebird: decimal/numeric support. Closes #6408.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-07 19:56:01 +00:00 |
|
Jamis Buck
|
57a3e44052
|
make add_order a tad faster (Closes #6567)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5452 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-07 19:06:35 +00:00 |
|
Jeremy Kemper
|
a3dba1ed7c
|
Find with :include respects scoped :order. Closes #5850.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-07 00:18:07 +00:00 |
|
Jeremy Kemper
|
2fbe0ae7a2
|
Support nil and Array in :conditions => { attr => value } hashes. Closes #6548.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5435 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-05 21:27:51 +00:00 |
|
Jeremy Kemper
|
5b979ed8ff
|
Consistently use LOWER() for uniqueness validations (rather than mixing with UPPER()) so the database can always use a functional index on the lowercased column. Closes #6495.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5434 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-05 19:20:39 +00:00 |
|
Jeremy Kemper
|
b6171e7105
|
SQLite: count(distinct) queries supported in >= 3.2.6, fix calculations workaround, remove count(distinct) query rewrite, cleanup test connection scripts. Closes #6544.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5426 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-05 02:01:31 +00:00 |
|
Jeremy Kemper
|
c7c3994d31
|
Dynamically generate reader methods for serialized attributes. Closes #6362.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-02 20:20:46 +00:00 |
|
Jeremy Kemper
|
88d9b32496
|
Deprecation: object transactions warning.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5405 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-02 18:12:18 +00:00 |
|
Jeremy Kemper
|
ac715b2bcb
|
has_one :dependent => :nullify ignores nil associates. Closes #6528.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5401 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-02 09:45:17 +00:00 |
|
Jeremy Kemper
|
70840d4b7f
|
Oracle: resolve test failures, use prefetched primary key for inserts, check for null defaults. Factor out some common methods from all adapters. Closes #6515.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5384 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-01 20:28:48 +00:00 |
|
Michael Koziarski
|
53a97e9d61
|
Make add_column use the options hash with the Sqlite Adapter. Closes #6464 [obrie]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5353 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-24 07:32:18 +00:00 |
|
Marcel Molina
|
fb7807e244
|
Document other options available to migration's add_column. #6419
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5333 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-22 02:55:21 +00:00 |
|
Jeremy Kemper
|
8949ce0982
|
MySQL: all_hashes compatibility with old MysqlRes class. Closes #6429.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-20 20:30:59 +00:00 |
|
Rick Olson
|
c5536f9f00
|
Fix has_many :through to add the appropriate conditions when going through an association using STI. Closes #5783. [Jonathan Viney] (sorry, forgot to commit the actual files)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-16 15:42:55 +00:00 |
|
Rick Olson
|
e789b26e65
|
fix select_limited_ids_list issues in postgresql, retain current behavior in other adapters [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5291 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-13 08:29:00 +00:00 |
|
Rick Olson
|
7870494673
|
Restore eager condition interpolation, document it's differences [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5284 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-11 14:02:24 +00:00 |
|
Jeremy Kemper
|
629b8af2b0
|
Wrap save! in a transaction. Closes #6324.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5281 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-10 19:34:25 +00:00 |
|
Jeremy Kemper
|
2c3ca4c4e6
|
Don't rollback in teardown unless a transaction was started. Don't start a transaction in create_fixtures if a transaction is started. Closes #6282.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5270 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 07:48:27 +00:00 |
|
Rick Olson
|
850087f0bd
|
Add #delete support to has_many :through associations. Closes #6049 [Martin Landers]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5267 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 03:21:52 +00:00 |
|
Rick Olson
|
c98b471ca4
|
Reverted old select_limited_ids_list postgresql fix that caused issues in mysql. Closes #5851 [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5265 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 03:12:32 +00:00 |
|
Rick Olson
|
8e3bf70bcd
|
Removes the ability for eager loaded conditions to be interpolated, since there is no model instance to use as a context for interpolation. #5553 [turnip@turnipspatch.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 02:46:57 +00:00 |
|
David Heinemeier Hansson
|
943be923f0
|
Added timeout option to SQLite3 configurations to deal more gracefully with SQLite3::BusyException, now the connection can instead retry for x seconds to see if the db clears up before throwing that exception (closes #6126) [wreese@gmail.com] Added default timeout setting of 5 seconds to SQLite3 database.yml configurations [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5258 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 02:02:27 +00:00 |
|
David Heinemeier Hansson
|
55aab5b8ac
|
Added update_attributes! which uses save! to raise an exception if a validation error prevents saving (closes #6192) [jonathan]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5256 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 01:52:24 +00:00 |
|
David Heinemeier Hansson
|
9fd88d7939
|
Deprecated add_on_boundary_breaking (use validates_length_of instead) (closes #6292) [BobSilva]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5255 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-09 01:42:09 +00:00 |
|
Jeremy Kemper
|
0c3c131f3b
|
The has_many create method works with polymorphic associations. Closes #6361.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-08 06:45:32 +00:00 |
|
Jeremy Kemper
|
48d4d43f92
|
MySQL: introduce Mysql::Result#all_hashes to support further optimization. Closes #5581.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-02 20:43:13 +00:00 |
|
Jeremy Kemper
|
ef4fb3dee2
|
save! shouldn't validate twice. Closes #6324.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-02 03:21:32 +00:00 |
|
Jeremy Kemper
|
0092d0ac6d
|
Association collections have an _ids reader method to match the existing writer for collection_select convenience (e.g. employee.task_ids). The writer method skips blank ids so you can safely do @employee.task_ids = params[:tasks] without checking every time for an empty list or blank values. References #1887, Closes #5780.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5214 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-10-01 19:15:51 +00:00 |
|
Rick Olson
|
52547f5331
|
Add an attribute reader method for ActiveRecord::Base.observers [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-30 01:37:07 +00:00 |
|
Jeremy Kemper
|
a0bf0195a5
|
Deprecation: count class method should be called with an options hash rather than two args for conditions and joins. Closes #6287.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-26 17:02:45 +00:00 |
|
Jeremy Kemper
|
1caa76304b
|
has_one associations with a nil target may be safely marshaled. Closes #6279.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-26 06:56:17 +00:00 |
|
Michael Koziarski
|
83d972e365
|
Duplicate the hash provided to AR::Base#to_xml to prevent unexpected side effects [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-24 01:37:45 +00:00 |
|
Michael Koziarski
|
98a412aa38
|
Add a :namespace option to AR::Base#to_xml [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-17 16:31:30 +00:00 |
|
Jeremy Kemper
|
3f1acf49bd
|
Deprecation tests. Remove warnings for dynamic finders and for the foo_count ethod if it's also an attribute.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-15 07:02:05 +00:00 |
|
Jeremy Kemper
|
3ab1cb6a6a
|
Mock Time.now for more accurate Touch mixin tests. Closes #6213.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-14 00:50:42 +00:00 |
|
Jeremy Kemper
|
5589c734a8
|
Improve yaml fixtures error reporting. Closes #6205.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-13 23:31:54 +00:00 |
|
David Heinemeier Hansson
|
e2d8451024
|
We cant make MySQL 5 happy if it means making SQLite and PostgreSQL cry. So currently MySQL 5 is not fully supported for Rails when youre using eager loading (closes #6133, #6135). I have contacted MySQL to make them fix http://bugs.mysql.com/bug.php?id=13551 [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5075 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-08 22:01:00 +00:00 |
|
David Heinemeier Hansson
|
84bfdafa08
|
Added parentheses around FROM clauses generated by Base and associations since MySQL 5 claim that to be the standard (and will screw up joins if its not there), see http://bugs.mysql.com/bug.php?id=13551 [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5073 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-08 18:14:02 +00:00 |
|
Jeremy Kemper
|
7c4b6a55b6
|
Rollback [4917]. Closes #785.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5067 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-07 21:34:35 +00:00 |
|
David Heinemeier Hansson
|
85fbb22f07
|
Backed out of new_record? to new? transformation as it would screw up existing models that did boolean calls on "new" attributes [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5018 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-05 18:54:24 +00:00 |
|
David Heinemeier Hansson
|
9d7e6432b2
|
Deprecated ActiveRecord::Base.new_record? in favor of ActiveRecord::Base.new? (old version still works until Rails 2.0) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-05 18:48:10 +00:00 |
|
Michael Koziarski
|
b445ab986a
|
Rename quote to quote_value so the name can be used in AR models. #3628 [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 23:41:13 +00:00 |
|