You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get this traceback when trying to execute a Model.objects.count() with django-pyodbc 0.3.0 and Django 1.8.4.
[...]/local/lib/python2.7/site-packages/django_pyodbc/compiler.pyc in _fix_aggregates(self)
116 """
117 for alias, aggregate in self.query.aggregate_select.items():
--> 118 if aggregate.sql_function == 'AVG':# and self.connection.cast_avg_to_float:
119 # Embed the CAST in the template on this query to
120 # maintain multi-db support.
AttributeError: 'Count' object has no attribute 'sql_function'
I do not get this same error when using Django 1.7.10.
The text was updated successfully, but these errors were encountered:
For whom it may help, we switched to django-pyodbc-azure. It is kept much
more up to date than this lib and is not tied to Azure in any special way,
despite the name. Highly recommended 👍
I get this traceback when trying to execute a
Model.objects.count()
with django-pyodbc 0.3.0 and Django 1.8.4.I do not get this same error when using Django 1.7.10.
The text was updated successfully, but these errors were encountered: