Opened 3 years ago

Closed 3 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: master
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


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 Changed 3 years ago by Sergey Fedoseev

Owner: changed from nobody to Sergey Fedoseev
Status: newassigned

comment:2 Changed 3 years ago by Sergey Fedoseev

Has patch: set

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

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