aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
authorRobb Shecter <robb@weblaws.org>2013-12-05 16:54:34 -0800
committerRobb Shecter <robb@weblaws.org>2013-12-05 16:54:34 -0800
commit6f8a16ae333fca8ae9e3f497a32264d23ca21137 (patch)
tree39309c7ae8ae8ff14d1936a575308d1827e11c00 /lib/arel
parentf2e8ef94ff74575389e5aba58cc08a10781aa91c (diff)
downloadrails-6f8a16ae333fca8ae9e3f497a32264d23ca21137.tar.gz
rails-6f8a16ae333fca8ae9e3f497a32264d23ca21137.tar.bz2
rails-6f8a16ae333fca8ae9e3f497a32264d23ca21137.zip
Documented the case-insensitive nature of the match feature.
Documenting the library's behavior. People and other libraries (cf. Squeel) have come to depend on this behavior, and so am submitting this pull request to specify it authoritatively.
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/visitors/to_sql.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb
index 1d8cd35806..554f98da14 100644
--- a/lib/arel/visitors/to_sql.rb
+++ b/lib/arel/visitors/to_sql.rb
@@ -42,6 +42,10 @@ module Arel
# `getconstant` should be a hash lookup, and no object is duped when the
# value of the constant is pushed on the stack. Hence the crazy
# constants below.
+ #
+ # `matches` and `doesNotMatch` operate case-insensitively via Visitor subclasses
+ # specialized for specific databases when necessary.
+ #
WHERE = ' WHERE ' # :nodoc:
SPACE = ' ' # :nodoc: