Opened 7 years ago

Closed 7 years ago

#28383 closed Cleanup/optimization (fixed)

NumPoints should return None for any non-LINESTRING geometry on MySQL as documented

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

Description

Documetation says

On MySQL, returns None for any non-LINESTRING geometry.

, but instead of that TypeError is raised. IMO we should not check input type here because we can't do it reliably if the input is the output of another GIS function and because wrong input type doesn't lead to some DB level error.

Change History (3)

comment:1 by Sergey Fedoseev, 7 years ago

Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:2 by Sergey Fedoseev, 7 years ago

Has patch: set

comment:3 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: assignedclosed

In 306b961:

Fixed #28383 -- Made NumPoints GIS function return None for non-LINESTRING geometries on MySQL.

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