Skip to content

Commit

Permalink
Merge pull request #934 from support-project/issue931_search_ilike
Browse files Browse the repository at this point in the history
#931 Do not distinguish between uppercase and lowercase letters on li…
  • Loading branch information
koda-masaru authored Oct 30, 2017
2 parents 81342d7 + 9474874 commit 9bd5e35
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SELECT
WHERE
GROUPS.DELETE_FLAG = 0
AND
GROUPS.GROUP_NAME LIKE '%' || ? || '%'
GROUPS.GROUP_NAME ILIKE '%' || ? || '%'
GROUP BY
GROUPS.GROUP_ID
ORDER BY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SELECT
GROUPS.GROUP_ID = KNOWLEDGE_GROUPS.GROUP_ID
WHERE
GROUPS.DELETE_FLAG = 0
AND GROUPS.GROUP_NAME LIKE '%' || ? || '%'
AND GROUPS.GROUP_NAME ILIKE '%' || ? || '%'
AND (
EXISTS (
SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SELECT TAGS.*, COUNT(KNOWLEDGE_TAGS.KNOWLEDGE_ID) AS KNOWLEDGE_COUNT FROM TAGS
INNER JOIN KNOWLEDGE_TAGS ON (TAGS.TAG_ID = KNOWLEDGE_TAGS.TAG_ID)
AND TAGS.DELETE_FLAG = 0
AND TAGS.TAG_NAME LIKE ?
AND TAGS.TAG_NAME ILIKE ?
GROUP BY TAGS.TAG_ID
ORDER BY KNOWLEDGE_COUNT DESC, TAG_NAME
LIMIT ? OFFSET ?
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SELECT
USERS
WHERE
USERS.DELETE_FLAG != 1
AND USERS.USER_NAME LIKE '%' || ? || '%'
AND USERS.USER_NAME ILIKE '%' || ? || '%'
UNION
SELECT
'G-' || GROUPS.GROUP_ID AS VALUE
Expand All @@ -19,7 +19,7 @@ SELECT
GROUPS
WHERE
GROUPS.DELETE_FLAG != 1
AND GROUPS.GROUP_NAME LIKE '%' || ? || '%'
AND GROUPS.GROUP_NAME ILIKE '%' || ? || '%'
) AS TARGETS
ORDER BY
LABEL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SELECT
WHERE
GROUPS.DELETE_FLAG = 0
AND
GROUPS.GROUP_NAME LIKE '%' || ? || '%'
GROUPS.GROUP_NAME ILIKE '%' || ? || '%'
GROUP BY
GROUPS.GROUP_ID
ORDER BY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SELECT
FROM
GROUPS
WHERE
GROUPS.GROUP_NAME LIKE '%' || ? || '%'
GROUPS.GROUP_NAME ILIKE '%' || ? || '%'
AND
GROUPS.DELETE_FLAG = 0
AND
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SELECT
GROUPS
WHERE
GROUPS.DELETE_FLAG = 0
AND GROUPS.GROUP_NAME LIKE '%' || ? || '%'
AND GROUPS.GROUP_NAME ILIKE '%' || ? || '%'
AND (
EXISTS (
SELECT
Expand Down

0 comments on commit 9bd5e35

Please sign in to comment.