William Reed
07/01/2024, 6:49 PMbusiness
with a column locations
that is a TEXT[]
. This query runs fine in postgres but in sqldelight gives me ')', ',', '.', <compound operator real>, <join operator real>, <table alias real>, AS, FOR, GROUP, HAVING, INDEXED, LIMIT, NOT, OFFSET, ORDER or WHERE expected, got '('
SELECT *
FROM business
WHERE EXISTS (
SELECT 1
FROM unnest(locations) as loc
WHERE lower(loc) LIKE '%' || LOWER(:query) || '%'
)
2. with the same schema the following query gives me error '(', <bind parameter real>, <column expr real>, <expr>, <extension expr real>, <literal value real>, EXISTS, RAISE or id expected, got 'EXISTS'
which also runs fun in postgres
getAllBusinessesMatchingQuery:
SELECT *
FROM business
WHERE LOWER(name) LIKE '%' || LOWER(:query) || '%'
OR EXISTS (
SELECT 1
FROM unnest(locations) as loc
WHERE lower(loc) LIKE '%' || LOWER(:query) || '%'
)
I can create bug tickets for these, just want to make sure it’s not something i’m doing wrong first.Chrimaeon
07/01/2024, 8:50 PMWilliam Reed
07/01/2024, 8:51 PMhfhbd
07/02/2024, 5:56 AMhfhbd
07/02/2024, 5:57 AMWilliam Reed
07/11/2024, 5:17 PM