| Bug #9781 | returned SQL_Type on WKB query | ||
|---|---|---|---|
| Submitted: | 9 Apr 2005 13:11 | Modified: | 4 May 2007 0:07 |
| Reporter: | [ name withheld ] | ||
| Status: | Closed | ||
| Category: | Connector/ODBC | Severity: | S3 (Non-critical) |
| Version: | 3.51 | OS: | Microsoft Windows (WinXP) |
| Assigned to: | Jim Winstead | Target Version: | |
[9 Apr 2005 13:11]
[ name withheld ]
[26 Apr 2005 5:52]
Stuart Hudson
I have stumbled across the same problem via JDBC (Bug #10166) and agree (asBinary 'should' return a BLOB)
[26 Apr 2005 5:52]
Stuart Hudson
I have stumbled across the same problem via JDBC (Bug #10166) and agree (asBinary 'should' return a BLOB)
[2 Feb 2006 3: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 19: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 9: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
[4 May 2007 0:07]
Jim Winstead
This bug was apparently already fixed. I've added a regression test to the test suite.
