Aaron Patterson
|
5046120b97
|
comma limits do not make sense on oracle or pg
|
2011-02-08 16:54:07 -08:00 |
|
Aaron Patterson
|
1c6f4562d7
|
primary keys should not be cleared on cache clear, fixing oracle tests
|
2011-02-08 16:01:16 -08:00 |
|
Aaron Patterson
|
0b58a7ff42
|
limit() should sanitize limit values
This fixes CVE-2011-0448
|
2011-02-08 14:21:12 -08:00 |
|
Aaron Patterson
|
8ce57652b2
|
ignore max identifier length queries from pg
|
2011-02-08 13:38:05 -08:00 |
|
Aaron Patterson
|
cd440236ad
|
this test requires the job model, so we should require it
|
2011-02-08 11:31:46 -08:00 |
|
Jan
|
9643243204
|
make set_table_name take effect immediately
|
2011-02-08 10:31:09 -08:00 |
|
Aaron Patterson
|
2b4de6621f
|
require tag since we need it for this test
|
2011-02-07 16:09:33 -08:00 |
|
Jon Leighton
|
e62b576472
|
Refactor the implementations of AssociatioCollection#delete and #destroy to be more consistent with each other, and to stop passing blocks around, thus making the execution easier to follow.
|
2011-02-07 23:35:05 +00:00 |
|
Jon Leighton
|
52f09eac5b
|
Correctly update counter caches on deletion for has_many :through [#2824 state:resolved]. Also fixed a bunch of other counter cache bugs in the process, as once I fixed this one others started appearing like nobody's business.
|
2011-02-07 23:35:05 +00:00 |
|
Jon Leighton
|
05bcb8cecc
|
Support the :dependent option on has_many :through associations. For historical and practical reasons, :delete_all is the default deletion strategy employed by association.delete(*records), despite the fact that the default strategy is :nullify for regular has_many. Also, this only works at all if the source reflection is a belongs_to. For other situations, you should directly modify the through association.
|
2011-02-07 23:35:05 +00:00 |
|
Jon Leighton
|
d55406d2e9
|
Make record.association.destroy(*records) on habtm and hm:t only delete records in the join table. This is to make the destroy method more consistent across the different types of associations. For more details see the CHANGELOG entry.
|
2011-02-07 23:35:05 +00:00 |
|
Aaron Patterson
|
5f1ea2a26b
|
we do not use this method, so delete
|
2011-02-07 15:28:49 -08:00 |
|
Aaron Patterson
|
30bba95a04
|
update ignored SQL for oracle
|
2011-02-07 15:12:21 -08:00 |
|
Aaron Patterson
|
1193709cd6
|
removing some freedom patches. use notification system to count sql queries
|
2011-02-07 14:35:11 -08:00 |
|
Aaron Patterson
|
0de661d6c7
|
the connection pool caches table_exists? calls
|
2011-02-07 09:26:52 -08:00 |
|
Akira Matsuda
|
65e08cfb4f
|
do not to_s where you are testing that a string value is stored for the before_type_cast
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-07 09:52:24 -02:00 |
|
Akira Matsuda
|
40aefb9301
|
avoid nil.dup
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-07 09:51:51 -02:00 |
|
Aaron Patterson
|
59f7780a34
|
adjust query counts to be consistent across databases, make sure database log the same things
|
2011-02-04 18:14:59 -08:00 |
|
Aaron Patterson
|
acccb72cb1
|
column cache now lives on the connection pool
|
2011-02-04 18:14:59 -08:00 |
|
Aaron Patterson
|
c94651f8c8
|
almost fisted
|
2011-02-04 18:14:59 -08:00 |
|
Aaron Patterson
|
0cd42864e3
|
making sure primary key is set on the columns
|
2011-02-04 18:14:59 -08:00 |
|
Aaron Patterson
|
5f3cf4244d
|
connection pool can cache column, table, and primary key information
|
2011-02-04 18:14:59 -08:00 |
|
Edward Faulkner
|
909588d964
|
Fixing ordering of HABTM association deletion [#6191 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-04 19:39:59 -02:00 |
|
Aaron Patterson
|
df07760486
|
introduce a fake AR adapter for mocking database return values
|
2011-02-04 13:34:57 -08:00 |
|
Aaron Patterson
|
7423a71fc0
|
allow AR caches to be cleared, clear them on class reloading
|
2011-02-03 15:35:44 -08:00 |
|
Aaron Patterson
|
23a3ba4260
|
Revert "ARel only requires the connection from the AR class. Simply return the AR class rather than jump through hoops and store ivars"
This reverts commit d65e3b481e.
|
2011-02-03 14:04:21 -08:00 |
|
Ken Collins
|
95d5d9b6c4
|
The type_cast_calculated_value method will trust DB types before casting to a BigDecimal.
[#6365 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-03 20:00:51 -02:00 |
|
Aaron Patterson
|
d65e3b481e
|
ARel only requires the connection from the AR class. Simply return the AR class rather than jump through hoops and store ivars
|
2011-02-03 11:50:43 -08:00 |
|
Guillermo Álvarez
|
351331fb34
|
Make serialized columns with explicit object_type return a new instance of the object instead of nil
|
2011-02-03 09:08:45 -08:00 |
|
Raimonds Simanovskis
|
9e23835cb8
|
fix for test_read_attributes_before_type_cast_on_datetime - Oracle adapter also returns Time value
|
2011-02-02 09:06:42 -08:00 |
|
Franck Verrot
|
a5b03e9c7a
|
Implement and test private method all_timestamp_attributes_in_model
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-02 12:45:14 -02:00 |
|
Franck Verrot
|
47315760bc
|
Test timestamp_attributes_for_update_in_model that was already in place
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-02 12:45:03 -02:00 |
|
Franck Verrot
|
5178e64175
|
Added timestamp_attributes_for_create_in_model
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-02 12:44:53 -02:00 |
|
Franck Verrot
|
598b32c581
|
Test private method all_timestamp_attributes
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-02 12:44:41 -02:00 |
|
Franck Verrot
|
253f5a15f4
|
Test private method timestamp_attributes_for_update
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-02 12:44:25 -02:00 |
|
Franck Verrot
|
6d40d527e8
|
Test private method timestamp_attributes_for_create
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-02 12:44:05 -02:00 |
|
Aaron Patterson
|
5b42e96602
|
make sure de-serialization happens on object instantiation
|
2011-02-01 15:23:55 -08:00 |
|
Aaron Patterson
|
a0fac71922
|
store the serialized column values in the @attributes hash
|
2011-02-01 14:25:47 -08:00 |
|
Aaron Patterson
|
ebe485fd8e
|
serialize can take an arbitrary code object
|
2011-02-01 14:25:47 -08:00 |
|
Aaron Patterson
|
ee34b4cf34
|
share column cache among subclasses, only look up columns per AR::Base subclass once
|
2011-02-01 14:25:46 -08:00 |
|
Aaron Patterson
|
3cc2b77dc1
|
adding a YAML Column coder for YAML serialization to db columns
|
2011-02-01 14:25:46 -08:00 |
|
Aaron Patterson
|
65f11ff789
|
column will use coder to typecase value when it is available
|
2011-02-01 14:25:46 -08:00 |
|
Aaron Patterson
|
a7c2f6be30
|
coders can be assigned to columns
|
2011-02-01 14:25:46 -08:00 |
|
Aaron Patterson
|
6d5e3b86d5
|
namespace test so we can dry up constant lookup
|
2011-02-01 14:25:46 -08:00 |
|
Glenn Vanderburg
|
6bd9fac1e3
|
Propagate association extensions to scopes called on the association.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-01 12:38:58 -02:00 |
|
Akira Matsuda
|
817e370136
|
Make before_type_cast available for datetime fields
[#3973 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
|
2011-02-01 12:21:18 -02:00 |
|
Pratik Naik
|
9666b6a625
|
Run BulkAlterTableMigrationsTest only when the adapter supports them
|
2011-01-31 14:10:51 +00:00 |
|
Pratik Naik
|
30176f28a4
|
Add :bulk => true option to change_table
|
2011-01-31 13:21:25 +00:00 |
|
Jon Leighton
|
3fa61ccb9e
|
Has many through - It is not necessary to manually merge in the conditions hash for the through record, because the creation is done directly on the through association, which will already handle setting the conditions.
|
2011-01-30 11:58:09 +00:00 |
|
Jon Leighton
|
2e24cf7cc2
|
AssociationCollection#clear can basically just use #delete_all, except it should return self.
|
2011-01-30 11:58:08 +00:00 |
|