aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-07 10:37:50 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-07 10:37:50 +0000
commit3e7d191e6450a3050976c735b0efc11b8a0aee93 (patch)
tree1d954adc5207f7fcd231fe79e2fde0293e2b1d26 /activerecord/CHANGELOG
parent5e3eaff5bb00c4d19d9ff2e80d32090e9515fe2c (diff)
downloadrails-3e7d191e6450a3050976c735b0efc11b8a0aee93.tar.gz
rails-3e7d191e6450a3050976c735b0efc11b8a0aee93.tar.bz2
rails-3e7d191e6450a3050976c735b0efc11b8a0aee93.zip
Added bind-style variable interpolation for the condition arrays that uses the adapter's quote method [Michael Koziarski]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@56 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG10
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 0d19cf3e44..0b0c0048e9 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,15 @@
*CVS*
+* Added bind-style variable interpolation for the condition arrays that uses the adapter's quote method [Michael Koziarski]
+
+ Before:
+ find_first([ "user_name = '%s' AND password = '%s'", user_name, password ])]
+ find_first([ "firm_id = %s", firm_id ])] # unsafe!
+
+ After:
+ find_first([ "user_name = ? AND password = ?", user_name, password ])]
+ find_first([ "firm_id = ?", firm_id ])]
+
* Added CSV format for fixtures #272 [what-a-day]. (See the new and expanded documentation on fixtures for more information)
* Fixed fixtures using primary key fields called something else than "id" [dave]