Change in ovirt-engine[master]: core:Hosts from another data center ...(#874660)
emesika at redhat.com
emesika at redhat.com
Tue Nov 13 09:22:18 UTC 2012
Eli Mesika has submitted this change and it was merged.
Change subject: core:Hosts from another data center ...(#874660)
......................................................................
core:Hosts from another data center ...(#874660)
Hosts from another data center displayed when clicked on Hosts in tree view for cluster names with a single difference.
Search Engine is using currently the ILIKE keyword to enable
case-insensitive searches. Postgres treats the character '_' in a value
when using LIKE/ILIKE teh same way as '?' is used for regular
expressions. (i.e. match any single value)
This patch looks for the character '_' in values passed to the search
engine and proceed then with a backslash such that they will be treated
as a regular character and Search Engine will return the correct result.
Change-Id: I2a5e9946f7795827d1abd50f05e641d90802e1e8
Signed-off-by: Eli Mesika <emesika at redhat.com>
---
M backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/SyntaxChecker.java
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Eli Mesika: Verified; Looks good to me, approved
--
To view, visit http://gerrit.ovirt.org/9207
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2a5e9946f7795827d1abd50f05e641d90802e1e8
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>
More information about the Engine-commits
mailing list