Bug #88513 | GIS Inconsistencies 8.0.3 vs 5.7.19 vs 5.7.19 with previous function names | ||
---|---|---|---|
Submitted: | 16 Nov 2017 8:09 | Modified: | 21 Nov 2017 14:04 |
Reporter: | Roel Van de Paar | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: GIS | Severity: | S1 (Critical) |
Version: | 8.0.3, 5.7.19 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[16 Nov 2017 8:09]
Roel Van de Paar
[16 Nov 2017 8:11]
Roel Van de Paar
Please use a debug build
[17 Nov 2017 12:27]
Norvald Ryeng
The output is correct. The WKT strings in the two first queries are invalid, using "ST_MULTILINESTRING" and "ST_MULTIPOINT" instead of "MULTILINESTRING" and "MULTIPOINT". If the same parameters are given to the third query (using old function names), it too fails with the same error message.
[19 Nov 2017 21:09]
Roel Van de Paar
Norvald, thank you for your input. I am not following, would you elaborate a bit more please? Also, note that 8.0.3 and 5.7.19 - for the same query - produce different output; ERROR 3037 (22023): Invalid GIS data provided to function st_multilinestringfromtext. ERROR 3037 (22023): Invalid GIS data provided to function st_geometryfromtext.
[20 Nov 2017 5:22]
MySQL Verification Team
could the fix for https://bugs.mysql.com/bug.php?id=80627 have anything to do with this...?
[21 Nov 2017 14:04]
Norvald Ryeng
The function names have been standardized on "ST_", e.g., ST_AsText, ST_MultiLineStringFromText, etc. However, the WKT format has not changed, so in any ST_<something>FromText function, the WKT input string should still be "MULTIPOINT(...)", not "ST_MULTIPOINT(...)". The only difference in the error message between MySQL 8.0.3 and 5.7.19 is the function name. There is a bug in MySQL 5.7.19 where the wrong function is named in the error message: MySQL 5.7.19 says that the function name is "st_geometryfromtext", while it really is "st_multilinestringfromtext". That bug is no longer there in 8.0.3.