Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030476Openbravo ERPA. Platformpublic2015-07-31 14:212015-07-31 14:24
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
newopen 
5
 
 
Core
No
0030476: Consolidate the user of UPPER/LOWER to achieve case insensitive filtering
Although most of the times we use the UPPER function to achieve case insensitive filtering, there are a few cases where we use the LOWER function.

In some cases it is possible to define a function based index that can be used to do case insensitive filtering.

If both UPPER and LOWER are used throughout the OB codebase, it will be needed to define UPPER and LOWER function based indexes for them. For this reason it is better to use only UPPER or LOWER.
Look in the Openbravo codebase for instances of UPPER and LOWER. You will find that UPPER instances appear almost 10x more ofthen than LOWER ones
No tags attached.
related to feature request 0030477 new Triage Platform Base Generate a query with UPPER when using the ilike operator in Hibernate 
related to defect 0030488 closed platform API Change: Replacement of LOWER with UPPER in queries 
related to feature request 0030561 closed AugustoMauch Use UPPER to achieve case insensitive filtering in CustomQuerySelectorDatasource 
Issue History
2015-07-31 14:21AugustoMauchNew Issue
2015-07-31 14:21AugustoMauchAssigned To => AugustoMauch
2015-07-31 14:21AugustoMauchModules => Core
2015-07-31 14:21AugustoMauchTriggers an Emergency Pack => No
2015-07-31 14:24AugustoMauchNote Added: 0079149
2015-07-31 14:57AugustoMauchRelationship addedrelated to 0030477
2015-08-04 09:22AugustoMauchRelationship addedrelated to 0030488
2015-08-12 14:56AugustoMauchRelationship addedrelated to 0030561

Notes
(0079149)
AugustoMauch   
2015-07-31 14:24   
Taking into account the nowadays UPPER is used around 10 times more often than LOWER, all the instances of LOWER are going to be replaced with UPPER.