Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009545Openbravo ERPA. Platformpublic2009-06-18 16:192009-07-16 17:55
shuehner 
shuehner 
normalminorhave not tried
closedfixed 
5
pi 
 
Core
No
0009545: Add feature to ignore the value '%' in select which use like
The default value for a lot of search fields in openbravo is '%'. When this value is used with like this filter like '%' is redundant and should be removed to increase performance. Especially in combination with the c_ignore_accent function this can lead to a huge performance improvement.

Add a new optional attribute to the parameter definition of xsql files. When not specified then the generated should be identical to the state now. When the new attribute is specified with i.e. the value '%', then at runtime when the filter is '%' the parameter should be treated as "" (and is automatically omitted from the query).
No tags attached.
depends on backport 0009547 closed shuehner Add feature to ignore the value '%' in select which use like 
Issue History
2009-06-18 16:19shuehnerNew Issue
2009-06-18 16:19shuehnerAssigned To => shuehner
2009-06-18 16:20shuehnerStatusnew => scheduled
2009-06-18 16:20shuehnerfix_in_branch => pi
2009-06-18 16:23hgbotCheckin
2009-06-18 16:23hgbotNote Added: 0017428
2009-06-18 16:23hgbotStatusscheduled => resolved
2009-06-18 16:23hgbotResolutionopen => fixed
2009-06-18 16:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8a460ec42ad89c98ebc69658cc2938aa41c75fa2 [^]
2009-07-11 08:22pjuvaraStatusresolved => closed
2009-07-16 17:55anonymoussf_bug_id0 => 2822569

Notes
(0017428)
hgbot   
2009-06-18 16:23   
Repository: erp/devel/pi
Changeset: 8a460ec42ad89c98ebc69658cc2938aa41c75fa2
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Thu Jun 18 16:22:45 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8a460ec42ad89c98ebc69658cc2938aa41c75fa2 [^]

Fixed 9545: New feature for Sqlc: ignoreValues
- This adds a new optional attribute to parameter tags in xsql files
- Behavior is unchanged when not specifying this attribute

---
M src-core/src/org/openbravo/data/Parameter.java
M src-core/src/org/openbravo/data/Sql.java
M src-core/src/org/openbravo/data/Sqlc.java
---