9 Replies
what SQL is getting generated? what data should be getting returned?
I have an ETS-table with courses (name, code etc). Want to find a course by part of its name.
oh ETS, I missed that
Your argument order is backwards
Contains expect the thing that contains the stuff to be the first argument, and the thing you want to be contained as the second.
I.e
contains(“foobar”, “oba”)
is true
But contains(“oba”, “foobar”)
is notI caught that one actually. The error was the way I called the action...my editor suggested a string value instead of (:read, %{name="..."}) Still have things to learn about Ash...
Is that the syntax you used?
name=“”
Anyway, glad you figured it out 🙂search_course_name I mean.
Thanks
!
ohhh, okay 🙂
ooh that's a tricky one, I would have expected it to be OP's way around
wait no.... I confused myself. not the first time