ilike with reference
Hey there, I'm looking to perform the following SQL operation:
but unfortunately I'm having trouble doing this in Kysely. Here is my current attempt:
which will compile fine, but unfortunately pg throws a
error: could not determine data type of parameter $1
error when running. I printed the sql query compiled by Kysely and got:
which Pg can't seem to handle.
Does anyone have any suggestions? I recognize that this problem might not necessarily be with Kysely.Solution:Jump to solution
Using
Seemed to do the trick, instead of
eb.val("%")
. Any other ways to make this more ergonomic?...2 Replies