[MDEV-7528] GIS: Functions return NULL instead of specified -1 for NULL arguments Created: 2015-01-28  Updated: 2015-06-23  Resolved: 2015-06-23

Status: Closed
Project: MariaDB Server
Component/s: GIS
Affects Version/s: N/A
Fix Version/s: 10.1.6

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: documentation, gis

Issue Links:
Relates
relates to MDEV-7509 Testing for GIS extensions Closed
Sprint: 10.1.6-1

 Description   

MariaDB [test]> select ST_IsRing(NULL);
+-----------------+
| ST_IsRing(NULL) |
+-----------------+
|            NULL |
+-----------------+
1 row in set (0.00 sec)

etc.

Specification in the email said:

IsRing(ln)
The return type is Integer, with a return value of 1 for
TRUE, 0 for FALSE, and -1 for UNKNOWN
corresponding to a function invocation on NULL

etc.

Possibly it's just a documentation issue. PostgreSQL also returns NULL.



 Comments   
Comment by Alexey Botchkov [ 2015-06-23 ]

http://lists.askmonty.org/pipermail/commits/2015-June/008079.html

Generated at Thu Feb 08 07:20:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.