Erratic behaviors with LIKE and % #59
-
Ciao, the Edge functions seem picky when the LIKE operator and the wildcard % are involved. I'm fiddling with a straightforward query. I rewrote it in SQL, Typescript, and JS. The point is that strange errors arise when I use LIKE with the %. The code below, in particular, works in the Edge function editor but, once deployed, it returns a 500:
And, when deployed, I get:
Any hints? Thank you for your work, this is a nice platform! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thank you rosdec, could it be that you are not setting the API KEY in the configuration of the edge function and in the request as Bearer token? I get this kind of message in that case and we need to improve it. The API KEY must be set in the edge function or in the request when you want to use the I suggest you to use this syntax to ensure parameters to be escaped:
|
Beta Was this translation helpful? Give feedback.
Thank you rosdec, could it be that you are not setting the API KEY in the configuration of the edge function and in the request as Bearer token? I get this kind of message in that case and we need to improve it. The API KEY must be set in the edge function or in the request when you want to use the
connection.sql()
function.I suggest you to use this syntax to ensure parameters to be escaped: