Skip to content

Possible use nested functions in where query? #118

Closed Answered by tarsius
martin5233 asked this question in Q&A
Discussion options

You must be logged in to vote

Place point after the last ] and M-x emacsql-show-last-sql. The result shows in *emacsql-show* or *Messages*:

SELECT revision FROM revisions WHERE lower(hex(updated)) = '"some hash value"';

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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by martin5233
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants