Bug #9781 | returned SQL_Type on WKB query | ||
---|---|---|---|
Submitted: | 9 Apr 2005 11:11 | Modified: | 3 May 2007 22:07 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S3 (Non-critical) |
Version: | 3.51 | OS: | Windows (WinXP) |
Assigned to: | Jim Winstead | CPU Architecture: | Any |
[9 Apr 2005 11:11]
[ name withheld ]
[26 Apr 2005 3:52]
Stuart Hudson
I have stumbled across the same problem via JDBC (Bug #10166) and agree (asBinary 'should' return a BLOB)
[26 Apr 2005 3:52]
Stuart Hudson
I have stumbled across the same problem via JDBC (Bug #10166) and agree (asBinary 'should' return a BLOB)
[2 Feb 2006 2:30]
Peter Yuill
I think there is some confusion about this bug report. The problem is not with Connector/ODBC or Connector/J (equally affected), but rather in the DBMS itself. The asWKB() function returns MYSQL_TYPE_VAR_STRING instead of BLOB. All modern Connector versions attempt to convert the 'string' value on the client platform, corrupting the WKB. This is an extremely serious bug for GIS users. While the bug remains WKB is completely unusable with modern Connectors. Older versions of Connectors (eg J 3.0) did not attempt to convert binary data, so anyone needing to use WKB must stick with Connectors that are well out date.
[25 Apr 2006 17:22]
P Eger
Hello, has anybody found a workaround or fix for this? It makes the WKB format, and thusly precise GIS data impossible (as the WKT format is lossy). Help!
[12 Mar 2007 8:56]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/21699
[3 May 2007 22:07]
Jim Winstead
This bug was apparently already fixed. I've added a regression test to the test suite.