Use ilike instead of like for case insensitive search

This commit is contained in:
Anthony Wang 2023-06-06 22:09:24 +00:00
parent 541599d73f
commit 2247d396c9
Signed by: a
GPG key ID: 42A5B952E6DD8D38

View file

@ -1,3 +1,3 @@
#!/usr/bin/bash
sudo -u mastodon PAGER=less psql -c "select * from statuses where text like '%$@%'"
sudo -u mastodon PAGER=less psql -c "select * from statuses where text ilike '%$@%'"