Author: ndkhoiits
Date: 2010-11-19 04:15:39 -0500 (Fri, 19 Nov 2010)
New Revision: 5174
Modified:
exo/portal/branches/3.1.x/component/portal/src/main/java/org/exoplatform/portal/pom/config/POMSession.java
Log:
EXOGTN-160 [PLF] Indicate slash symbol when using LIKE syntax to search special
characters
Modified:
exo/portal/branches/3.1.x/component/portal/src/main/java/org/exoplatform/portal/pom/config/POMSession.java
===================================================================
---
exo/portal/branches/3.1.x/component/portal/src/main/java/org/exoplatform/portal/pom/config/POMSession.java 2010-11-19
08:30:15 UTC (rev 5173)
+++
exo/portal/branches/3.1.x/component/portal/src/main/java/org/exoplatform/portal/pom/config/POMSession.java 2010-11-19
09:15:39 UTC (rev 5174)
@@ -314,7 +314,7 @@
"jcr:path LIKE '" + workspaceChunk + "/" +
ownerTypeChunk + "/" + ownerIdChunk
+ "/mop:rootpage/mop:children/mop:pages/mop:children/%' AND
" +
"(" +
- "LOWER(gtn:name) LIKE '%" + title.toLowerCase() +
"%')";
+ "LOWER(gtn:name) LIKE '%" + title.toLowerCase() +
"%' ESCAPE '\\')";
}
else
{
Show replies by date