aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-07 21:14:20 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-07 21:14:20 +0000
commita775cb190312edba8ef3feb6345ac446d7e8f113 (patch)
tree31e730e99c36e0883f348a58df200a8ba8a4d424 /activerecord/CHANGELOG
parent7a29764657eb75c516478bc31e88233601aae20e (diff)
downloadrails-a775cb190312edba8ef3feb6345ac446d7e8f113.tar.gz
rails-a775cb190312edba8ef3feb6345ac446d7e8f113.tar.bz2
rails-a775cb190312edba8ef3feb6345ac446d7e8f113.zip
Added the option for sanitizing find_by_sql and the offset parts in regular finds [Sam Stephenson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@75 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index eb8a906338..f4119046d5 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,10 @@
*CVS*
+* Added the option for sanitizing find_by_sql and the offset parts in regular finds [Sam Stephenson]. Examples:
+
+ Project.find_all ["category = ?", category_name], "created ASC", ["? OFFSET ?", 15, 20]
+ Post.find_by_sql ["SELECT * FROM posts WHERE author = ? AND created > ?", author_id, start_date]
+
* Fixed value quoting in all generated SQL statements, so that integers are not surrounded in quotes and that all sanitation are happening
through the database's own quoting routine. This should hopefully make it lots easier for new adapters that doesn't accept '1' for integer
columns.