Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030477
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. Platformminorhave not tried2015-07-31 14:572022-02-01 08:09
ReporterAugustoMauchView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0030477: Generate a query with UPPER when using the ilike operator in Hibernate

DescriptionWhen the ilike operator is used in Hibernate, it is translated to SQL like this:

Postgres: this_.columName ilike ?

Oracle: lower(this_.columName) like ?

There are two problems with this:
- It is not possible to use indexes when the ilike operator is used in postgres [1]
- We are consolidating the use of lower instead of upper (see [2])

[1] http://postgresql.nabble.com/How-to-force-Postgres-to-use-index-on-ILIKE-td2057162.html#a2057163 [^]
[2] https://issues.openbravo.com/view.php?id=30476 [^]
Steps To ReproduceSee the definition of IlikeExpression.toSqlString [1]

[1] http://www.grepcode.com/file/repo1.maven.org/maven2/hibernate/hibernate/3.1beta3/org/hibernate/criterion/IlikeExpression.java?av=h#29 [^]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0030476 newAugustoMauch Consolidate the user of UPPER/LOWER to achieve case insensitive filtering 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2015-07-31 14:57 AugustoMauch New Issue
2015-07-31 14:57 AugustoMauch Assigned To => platform
2015-07-31 14:57 AugustoMauch Modules => Core
2015-07-31 14:57 AugustoMauch Triggers an Emergency Pack => No
2015-07-31 14:57 AugustoMauch Relationship added related to 0030476
2022-02-01 08:09 alostale Assigned To platform => Triage Platform Base


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker