[Rt-commit] rt branch, 4.0/case-insensitive-custom-field-searching, created. rt-4.0.6-167-g2b006b4

Kevin Falcone falcone at bestpractical.com
Thu Jun 14 12:14:48 EDT 2012


The branch, 4.0/case-insensitive-custom-field-searching has been created
        at  2b006b40b00ca4ec99cc20190765bcb21b4b49ff (commit)

- Log -----------------------------------------------------------------
commit 2b006b40b00ca4ec99cc20190765bcb21b4b49ff
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Mon Jun 11 14:08:43 2012 -0400

    Make CustomField TicketSQL queries case insensitive
    
    Before this, CF.{Foo} = 'bob' wouldn't result in a LOWER()
    being used on Pg or Oracle.  The tests added in b42a867f
    started exposing this.

diff --git a/lib/RT/Tickets.pm b/lib/RT/Tickets.pm
index a5fa74e..bb1321e 100644
--- a/lib/RT/Tickets.pm
+++ b/lib/RT/Tickets.pm
@@ -1679,6 +1679,7 @@ sub _CustomFieldLimit {
                         FIELD    => 'Content',
                         OPERATOR => $op,
                         VALUE    => $value,
+                        CASESENSITIVE => 0,
                         %rest
                     );
                 }
@@ -1705,6 +1706,7 @@ sub _CustomFieldLimit {
                         OPERATOR        => $op,
                         VALUE           => $value,
                         ENTRYAGGREGATOR => 'AND',
+                        CASESENSITIVE => 0,
                     ) );
                 }
             }
@@ -1714,6 +1716,7 @@ sub _CustomFieldLimit {
                     FIELD    => 'Content',
                     OPERATOR => $op,
                     VALUE    => $value,
+                    CASESENSITIVE => 0,
                     %rest
                 );
 
@@ -1740,6 +1743,7 @@ sub _CustomFieldLimit {
                     OPERATOR        => $op,
                     VALUE           => $value,
                     ENTRYAGGREGATOR => 'AND',
+                    CASESENSITIVE => 0,
                 ) );
                 $self->_CloseParen;
             }
@@ -1796,6 +1800,7 @@ sub _CustomFieldLimit {
                 FIELD      => $column,
                 OPERATOR   => $op,
                 VALUE      => $value,
+                CASESENSITIVE => 0,
             ) );
         }
         else {
@@ -1805,6 +1810,7 @@ sub _CustomFieldLimit {
                 FIELD      => 'Content',
                 OPERATOR   => $op,
                 VALUE      => $value,
+                CASESENSITIVE => 0,
             );
         }
         $self->_SQLLimit(

-----------------------------------------------------------------------


More information about the Rt-commit mailing list