Feature request: Warn about aggregating over possibly incompatible types
51 views
Skip to first unread message
nbt...@nbtrap.com
unread,
Feb 24, 2014, 10:16:59 AM2/24/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-d...@googlegroups.com
We recently pushed to our production environment a feature that involved
summing (with django.db.models.Sum) over CharField entries containing
numeric text. It ended up not working correctly since the postgresql
SUM function can't handle textual arguments, whereas sqlite's apparently
can.
A nice feature that might have saved us the trouble would be to emit
warnings when running an aggregation function with types that don't work
with all of the db backends.
Any objections to me filing a feature request for this?