New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v5, v7, Chart and group_by issue SQLITE3 #321
Comments
I just replicated this issue on Demo:
sqlite3.OperationalError: no such column: DEMO_TRACKS.ARTIST Error: no such column: DEMO_TRACKS.ARTIST |
I think here is a problem in sql.py:
When Artist is used for GROUP BY, it works well. However, now I can't use second field for group by. |
Solution:
|
The above solution does not work for #322 |
Hi Andrew,
looks like when a Lookup field (Category from Products - which is hardcoded value in Product table), is added and THAT filed is used for ie Chart like this:
The SQL produced is this:
So I investigated further, looks like when Category is added to a table, it is not created in the DB!
This can be observed here:
https://northwind.pythonanywhere.com/
Add a lookup to Purchase_Order_Details, it will display ok on VIEW. But the Chart will fail.
Thoughts?
The text was updated successfully, but these errors were encountered: