Make search queries case insensitive

This commit is contained in:
2022-03-14 19:59:30 +00:00
committed by Gitea
parent 6a71d9643c
commit 87b78e7b67
6 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@ ORDER BY accounts.name;
SELECT accounts.id, accounts.budget_id, accounts.name, 'account' as type FROM accounts
WHERE accounts.budget_id = @budget_id
AND accounts.is_open = TRUE
AND accounts.name LIKE @search
AND accounts.name ILIKE @search
ORDER BY accounts.name;
-- name: UpdateAccount :one