Issue #212: query: improve error message for invalid syntax (blais/beancount)

26 views
Skip to first unread message

Martin Michlmayr

unread,
Feb 4, 2018, 12:56:49 PM2/4/18
to bean...@googlegroups.com
New issue 212: query: improve error message for invalid syntax
https://bitbucket.org/blais/beancount/issues/212/query-improve-error-message-for-invalid

Martin Michlmayr:

I accidentally added a WHERE clause after ORDER BY instead of before and got:

beancount> select date, narration, account, position, cost(sum(position)) WHERE account ~ "Exp" AND currency ~ 'USD' GROUP BY account, date, narration, position AND date > 2014-07-12
ERROR: All non-aggregates must be covered by GROUP-BY clause in aggregate query.

This error message doesn't make sense since all non-aggregates are covered.


Reply all
Reply to author
Forward
0 new messages