We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I'm basically trying to match parts of dates using text comparisons. Like so:
Select * from table where text(timestamptzfield) LIKE '%20:36%'
It works in PgAdmin, and the expected rows are returned. However when I try it with doobie using a fr clause like so:
fr"text(timestamptzfield) LIKE ${s"%$searchValue%"}"
where searchValue = "20:36", no rows are returned.
searchValue = "20:36"
I've debugged as much as I could, and it looks like it's working, I see the right strings, but it's returning no values form the postgreSQL db.
This works without a colon so If I use, say, searchValue = 20 the proper rows are returned. Any help would be appreciated.
searchValue = 20
Thanks!
The text was updated successfully, but these errors were encountered:
Hmm yeah that's weird. Don't think Doobie is involved here. Can you try using raw JDBC to reproduce this issue?
Sorry, something went wrong.
Thanks for the quick reply.
Will try to reproduce. Thank you.
No branches or pull requests
Hello,
I'm basically trying to match parts of dates using text comparisons. Like so:
It works in PgAdmin, and the expected rows are returned. However when I try it with doobie using a fr clause like so:
where
searchValue = "20:36"
, no rows are returned.I've debugged as much as I could, and it looks like it's working, I see the right strings, but it's returning no values form the postgreSQL db.
This works without a colon so If I use, say,
searchValue = 20
the proper rows are returned. Any help would be appreciated.Thanks!
The text was updated successfully, but these errors were encountered: