Replies: 1 comment 2 replies
-
@sarmong hah i had this same issue today and was about to make an issue, but you have to do something along the lines of this await db
.select()
.from(videos)
.where(sql`${videos.title} LIKE ${sql.raw(`'%${searchString}%'`)}`); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't know if I am doing smth wrong or there is a bug.
Does this query look alright?
Well, for some reason it returns just random set of results and returns the same no matter what the
searchString
is.Here's the inspected query
And no, I cannot use drizzles
like()
function, because what I in fact want to do is,but I simplified it here because both have the same issue.
Beta Was this translation helpful? Give feedback.
All reactions