[Rt-commit] rt branch, 4.2/indexes-management-case-sensitivity, updated. rt-4.1.23-2-g4ad8779

Ruslan Zakirov ruz at bestpractical.com
Thu Sep 19 16:56:21 EDT 2013


The branch, 4.2/indexes-management-case-sensitivity has been updated
       via  4ad8779588c3b1c787cd6763cd865bf77d4f85ea (commit)
      from  8573c6271efd4a9986ba7df8bcde3620d773a4bd (commit)

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

- Log -----------------------------------------------------------------
commit 4ad8779588c3b1c787cd6763cd865bf77d4f85ea
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Fri Sep 20 00:06:12 2013 +0400

    values in table_name column can be case sensitive
    
    It depends on file system and mysql setting.

diff --git a/lib/RT/Handle.pm b/lib/RT/Handle.pm
index c9a5c54..a87f72a 100644
--- a/lib/RT/Handle.pm
+++ b/lib/RT/Handle.pm
@@ -1359,9 +1359,9 @@ sub IndexInfo {
         my $list = $dbh->selectall_arrayref(
             'select NON_UNIQUE, COLUMN_NAME, SUB_PART
             from information_schema.statistics
-            where table_schema = ? AND table_name = ? AND index_name = ?
+            where table_schema = ? AND LOWER(table_name) = ? AND index_name = ?
             ORDER BY SEQ_IN_INDEX',
-            undef, scalar RT->Config->Get('DatabaseName'), $args{'Table'}, $args{'Name'},
+            undef, scalar RT->Config->Get('DatabaseName'), lc $args{'Table'}, $args{'Name'},
         );
         return () unless $list && @$list;
         $res{'Unique'} = $list->[0][0]? 0 : 1;

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


More information about the Rt-commit mailing list