Bug #10177 mistake
Submitted: 26 Apr 2005 13:54 Modified: 27 Apr 2005 15:47
Reporter: Dariusz Raczko Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Websites: MySQL.com Severity:S3 (Non-critical)
Version: OS:
Assigned to: Paul DuBois CPU Architecture:Any

[26 Apr 2005 13:54] Dariusz Raczko
Description:
Hi, 

I was studying reference manual "Spatial Extensions in MySQL". I think I found a mistake on chapter "18.4.2.2. Creating Geometry Values Using WKB Functions" (http://dev.mysql.com/doc/mysql/en/gis-wkb-functions.html) in two function definitions: 

GeomCollFromWKB(wkb[,srid]) , GeometryCollectionFromWKB(wkt[,srid])
and
GeomFromWKB(wkb[,srid]) , GeometryFromWKB(wkt[,srid])

Full name functions accepts different format of geometry type(wkt) as first argument than their shorter versions(wkb). I supose that someone was copying definitions from earlier chapter and forgot about changing argument "wkt" to "wkb"

How to repeat:
browse to http://dev.mysql.com/doc/mysql/en/gis-wkb-functions.html  ;)

Suggested fix:
Simply change "wkt" to "wkb" in:
GeometryCollectionFromWKB(wkt[,srid])
GeometryFromWKB(wkt[,srid])
[27 Apr 2005 15:47] Paul DuBois
Thank you for your bug report. This issue has been addressed in the
documentation. The updated documentation will appear on our website
shortly, and will be included in the next release of the relevant
product(s).