From 6f8a16ae333fca8ae9e3f497a32264d23ca21137 Mon Sep 17 00:00:00 2001 From: Robb Shecter Date: Thu, 5 Dec 2013 16:54:34 -0800 Subject: 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. --- lib/arel/visitors/to_sql.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/arel') 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: -- cgit v1.2.3