[Rt-commit] rt branch, 4.2/warn-on-case-sensitive-searches, updated. rt-4.1.8-161-g904c1ff

Ruslan Zakirov ruz at bestpractical.com
Thu Apr 25 17:39:17 EDT 2013


The branch, 4.2/warn-on-case-sensitive-searches has been updated
       via  904c1ffe73ff56baaad9e60e7464d45431f36be4 (commit)
      from  687f2fd171a5bdf6a0cd555383c688fdf05f0691 (commit)

Summary of changes:
 lib/RT/Handle.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 904c1ffe73ff56baaad9e60e7464d45431f36be4
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Fri Apr 26 01:35:42 2013 +0400

    return value depends on how many values caller expects
    
    we have to explicitly specify how many values we want as
    function uses Want module (or similar). In our situation
    we don't need variant that uses DB side lowering on value.

diff --git a/lib/RT/Handle.pm b/lib/RT/Handle.pm
index 576fe32..f7c5e09 100644
--- a/lib/RT/Handle.pm
+++ b/lib/RT/Handle.pm
@@ -1232,7 +1232,8 @@ sub _LogSQLStatement {
 sub __MakeClauseCaseInsensitive {
     my $self = shift;
     return join ' ', @_ unless $self->CaseSensitive;
-    return join ' ', grep defined, $self->_MakeClauseCaseInsensitive(@_);
+    my ($field, $op, $value) = $self->_MakeClauseCaseInsensitive(@_);
+    return "$field $op $value";
 }
 
 __PACKAGE__->FinalizeDatabaseType;

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


More information about the Rt-commit mailing list