Raw SQL in where clause
I have the following code and I'm getting a type error. This is strange as the raw sql statement works for insert statements but doesn't seem to play nice with the where clause.
In addition, the code below seems to work before
0.27.0
.
With that said, if I cast the sql statement to never
it seems to resolve the problem. But I don't think that's the proper fix.
Here's what I'm using:
kysely: 0.27.2
kysely-codegen: 0.12.0
Appreciate it if anyone have any insides to this! 🙏🏻1 Reply
Solution
Give a type for the raw expression