Possible use nested functions in where query? #118
-
I was trying to use Emacsql for a query with a nested function call. The SQL statement would look something like: I tried the following, which seems equivalent to me:
However this always returns nil, although I'm sure that the equivalent SQL statement returns a value. What am I doing wrong? Or isn't it possible to use nested functions for the SQL statement? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Place point after the last
So the issue is with |
Beta Was this translation helpful? Give feedback.
-
Hi Jonas, thanks for the quick reply. This did the trick, I hadn't read the documentation thoroughly enough :-) |
Beta Was this translation helpful? Give feedback.
Place point after the last
]
andM-x emacsql-show-last-sql
. The result shows in*emacsql-show*
or*Messages*
:So the issue is with
"some hash value"
. Put a quote ('
) before that and it should work. Or replace it with$s1
and provide the value as an argument.