| Bug #108512 | Return value of dimension() need be checked against 2 | ||
|---|---|---|---|
| Submitted: | 16 Sep 2022 0:53 | Modified: | 19 Sep 2022 10:44 |
| Reporter: | Li Zhong | Email Updates: | |
| Status: | Won't fix | Impact on me: | |
| Category: | MySQL Server: GIS | Severity: | S3 (Non-critical) |
| Version: | 8.0.21 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
[16 Sep 2022 0:53]
Li Zhong
[16 Sep 2022 5:44]
MySQL Verification Team
Hello Li Zhong, Thank you for the report and feedback. regards, Umesh
[19 Sep 2022 10:44]
Tor Didriksen
Posted by developer:
This looks like a false positive from your analysis tool.
We have
int dimension() const {
int d = 0;
if (xmin > xmax)
return -1;
else if (xmin < xmax)
d++;
if (ymin > ymax)
return -1;
else if (ymin < ymax)
d++;
return d;
}
which will return [-1 .. 2]
