Bug #74273 | Unsupported buffer type for mysql_stmt_bind_result function | ||
---|---|---|---|
Submitted: | 8 Oct 2014 14:48 | Modified: | 5 Mar 10:32 |
Reporter: | Milosz Bodzek | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / C++ | Severity: | S3 (Non-critical) |
Version: | 1.1.4 | OS: | Linux (Ubuntu 14.04 64 bit) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[8 Oct 2014 14:48]
Milosz Bodzek
[10 Oct 2014 12:26]
Hemant Dangi
MYSQL_TYPE_GEOMETRY is not supported by mysql_stmt_bind_result returning error. Error: Using unsupported buffer type: 253 (parameter: 1) So error need to be resolved in C/C first.
[10 Oct 2014 12:34]
Hemant Dangi
Added bugs for C/C bugs#74315.
[13 Oct 2014 10:19]
MySQL Verification Team
Hello Milosz/Hemant, Thank you for the bug report and test case. Thanks, Umesh
[13 Oct 2014 10:21]
MySQL Verification Team
// [root@cluster-repo mysql-advanced-5.6.22]# ./test_geometryCC Using unsupported buffer type: 255 (parameter: 2)
[16 Jan 2015 12:54]
Hemant Dangi
Resolution depends upon bug#74315 marked for C API.
[5 Mar 10:32]
Bogdan Degtyariov
Posted by developer: In Connector/C++ columns of type GEOMETRY can be accessed only as raw bytes using getBlob()/setBlob() methods of the classic (JDBC) API. Connector does not interpret GEOMETRY data in any way -- to transform them to other formats (WKT, WKB) one can use SQL functions such as ST_AsText(), ST_AsBinary(). As far as Connector/C++ is concerned everything works as expected. The original issue concerns only CAPI of the MySQL client library (the mysql_stmt_bind_result() function) and is handled by bug#19804341.