#14517 closed (fixed)
_supports_stddev checks for wrong exception
Reported by: | Austin Gabel | Owned by: | Austin Gabel |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
STDDEV_POP SQL function is not supported in PostgreSQL <= 8.1 so a NotImplementedError exception is raised. The try: is looking for a DatabaseError exception instead of the NotImplementedError so self.supports_stddev never gets set to False.
Attachments (1)
Change History (4)
by , 14 years ago
Attachment: | 14517_patch.diff added |
---|
comment:1 by , 14 years ago
Has patch: | set |
---|---|
Status: | new → assigned |
Triage Stage: | Unreviewed → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
This is pretty trivial so I'm going to go ahead to set it to ready for checkin.