Aaron Patterson
|
cbca12f908
|
adding tests for #5234 and #5184. Tests were from Akira Matsuda. Thanks Akira!
|
2010-10-30 13:20:54 -07:00 |
|
Denis Odorcic
|
cc9742920c
|
Convert :primary_key in association to a string before comparing to column names, so that for example :primary_key => :another_pk works as well [#5605 state:resolved]
|
2010-10-30 11:24:36 -07:00 |
|
Ernie Miller
|
0bb85ed9ff
|
Fix issues when including the same association multiple times and mixing joins/includes together.
|
2010-10-30 06:48:44 -07:00 |
|
Aaron Patterson
|
f6ddb3553a
|
fisting test name
|
2010-10-27 14:33:02 -07:00 |
|
Aaron Patterson
|
7104122cc3
|
making query cache work with prepared statements
|
2010-10-27 14:05:40 -07:00 |
|
Aaron Patterson
|
02128d628c
|
setting the authorized session clears the statement cache
|
2010-10-26 13:44:11 -07:00 |
|
Aaron Patterson
|
9d9aed433b
|
add a session authorization setter to the pg connection
|
2010-10-26 13:44:11 -07:00 |
|
Aaron Patterson
|
1741bbe2d5
|
avoiding statement cache if there are no bind values
|
2010-10-26 13:44:10 -07:00 |
|
Aaron Patterson
|
43bbb25ddd
|
bind substitution is working properly
|
2010-10-26 13:44:10 -07:00 |
|
Aaron Patterson
|
9d46e0d012
|
bind parameters are now typecast
|
2010-10-26 13:44:10 -07:00 |
|
Aaron Patterson
|
e2813479f9
|
basic bind parameters are working
|
2010-10-26 13:44:09 -07:00 |
|
Aaron Patterson
|
ffb999125a
|
initial exec() method is working in pg adapter
|
2010-10-26 13:44:09 -07:00 |
|
Aaron Patterson
|
d6b16bbaf7
|
one more mysql test left!
|
2010-10-26 13:44:09 -07:00 |
|
Aaron Patterson
|
77b1193ac1
|
mysql tests are mostly passing
|
2010-10-26 13:44:08 -07:00 |
|
Aaron Patterson
|
54ff59f3ba
|
refactoring tests
|
2010-10-26 13:44:08 -07:00 |
|
Aaron Patterson
|
d7207cf504
|
type casting bound value based on column associated with value
|
2010-10-26 13:44:08 -07:00 |
|
Aaron Patterson
|
cc468d3ec8
|
exec returns an AR::Result
|
2010-10-26 13:44:07 -07:00 |
|
Aaron Patterson
|
6ceffb8178
|
adding bind_values to relations
|
2010-10-26 13:44:07 -07:00 |
|
Aaron Patterson
|
497218d5db
|
adding bind value substitution
|
2010-10-26 13:44:07 -07:00 |
|
Aaron Patterson
|
f61f758761
|
reducing the number of parameters to select()
|
2010-10-26 13:43:06 -07:00 |
|
Aaron Patterson
|
ee71a3fbfc
|
removing call to deprecated API, this test is outside AR responsibilities
|
2010-10-22 13:33:59 -07:00 |
|
Xavier Noria
|
a031fc57c8
|
made a pass in AR's schema.rb to keep (most) create statements in lexicographic order, and fixed an FK
|
2010-10-22 16:55:02 +02:00 |
|
Xavier Noria
|
5b86c3e5bb
|
has_one maintains the association with separate after_create/after_update
This way parent models can get their own after_create and
after_update callbacks fired after has_one has done its job.
|
2010-10-22 10:28:53 +02:00 |
|
Aaron Patterson
|
410114e85a
|
adding a test to ensure offsets with no limits will work [#5316 state:resolved]
|
2010-10-20 17:17:22 -07:00 |
|
Aaron Patterson
|
96e8e97e78
|
removing unused variables
|
2010-10-20 09:38:15 -07:00 |
|
Jan
|
21beedf1ff
|
default scope merge where clauses [#5488 state:resolved]
|
2010-10-20 09:00:36 -07:00 |
|
Aaron Patterson
|
d2898d4ef8
|
scopes can take an object that responds to call
|
2010-10-19 17:29:25 -07:00 |
|
Aaron Patterson
|
e68f339aae
|
default scope can accept any object that responds to #call
|
2010-10-19 15:07:44 -07:00 |
|
Tim Morgan
|
b1b26af9a2
|
Allow default_scope to accept a Proc.
|
2010-10-19 14:43:31 -07:00 |
|
Anil Wadghule
|
d7799fadf9
|
Fix SQLite adapter name [#5842 state:resolved]
|
2010-10-19 10:44:59 -07:00 |
|
Aaron Patterson
|
dc76e3c38f
|
should sort these ids before asserting they are equal!
|
2010-10-15 15:47:09 -07:00 |
|
Aaron Patterson
|
552636c652
|
testing that symbols work as sql literals
|
2010-10-15 15:46:13 -07:00 |
|
Carl Lerche
|
69789c3b29
|
#transaction on the instance level should take options as well
|
2010-10-14 21:27:40 -07:00 |
|
Michael Koziarski
|
9ebe582830
|
Revert 0c0b0aa0f2 which introduced a security vulnerability.
This addresses CVE-2010-3933
Conflicts:
activerecord/lib/active_record/nested_attributes.rb
|
2010-10-15 10:27:33 +13:00 |
|
Aaron Patterson
|
676a00163d
|
clear any stale connections before messing with threaded tests
|
2010-10-13 16:58:03 -07:00 |
|
Carl Lerche
|
91ba75806f
|
Update the ActiveRecord tests to not set unused options
This makes a test fail, but it is revealing a bug in Arel master.
|
2010-10-13 12:32:52 -07:00 |
|
Jon Leighton
|
076b75bf98
|
Add some tests for functionality in JoinAssociation which already exists but was previously untested
|
2010-10-13 08:24:19 -07:00 |
|
Aaron Patterson
|
4b2e16ed24
|
all columns respond to string_to_binary, so no need to check respond_to?
|
2010-10-12 13:10:52 -07:00 |
|
Aaron Patterson
|
0ca9c836c0
|
test quoting a string with an unknown column type
|
2010-10-12 11:43:50 -07:00 |
|
Aaron Patterson
|
98cb754cd7
|
test quoting multibyte chars object
|
2010-10-12 11:38:07 -07:00 |
|
Aaron Patterson
|
2681dd81b4
|
test quoting strings with binary columns
|
2010-10-12 11:34:21 -07:00 |
|
Aaron Patterson
|
4804cb485c
|
test quoting a string with a float column
|
2010-10-12 11:30:34 -07:00 |
|
Aaron Patterson
|
50ad7f6561
|
testing quoting a string for an int column
|
2010-10-12 11:29:28 -07:00 |
|
Aaron Patterson
|
07b0b5b330
|
testing crazy object quoting
|
2010-10-12 11:25:20 -07:00 |
|
Aaron Patterson
|
1ba3489b75
|
test that dates / times / datetimes call quoted_date
|
2010-10-12 11:21:35 -07:00 |
|
Aaron Patterson
|
8b33f66891
|
test quoting of bigdecimals
|
2010-10-12 11:08:10 -07:00 |
|
Aaron Patterson
|
ba0a6772bb
|
testing floats, fixnum, and bignums
|
2010-10-11 17:57:47 -07:00 |
|
Aaron Patterson
|
8e8a5f33f4
|
test quoting nils, true, false, id
|
2010-10-11 17:52:10 -07:00 |
|
Aaron Patterson
|
2610bcbd94
|
getting quoted_time under more specific tests
|
2010-10-11 17:52:10 -07:00 |
|
Aaron Patterson
|
b9d4341bd0
|
starting to get the quote module under test
|
2010-10-11 17:52:10 -07:00 |
|