Opened 9 years ago

Closed 9 years ago

#25629 closed Cleanup/optimization (fixed)

Some GIS functions don't check the number of arguments

Reported by: Claude Paroz Owned by: Sergey Fedoseev
Component: GIS Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

GIS functions using their parent (GeoFunc) default __init__ don't check that the number of passed arguments is correct (e.g. Area). This should be improved, because currently, the result is a ProgrammingError when hitting the backend instead of a TypeError.

Change History (5)

comment:1 by Sergey Fedoseev, 9 years ago

Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:3 by Claude Paroz, 9 years ago

Has patch: set

comment:4 by Claude Paroz <claude@…>, 9 years ago

In 0a26121:

Refs #25629 -- Added arity class attribute to Func expressions

comment:5 by Claude Paroz <claude@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In a449b7ef:

Fixed #25629 -- Added checks of the number of arguments for GeoDjango DB functions.

Note: See TracTickets for help on using tickets.
Back to Top