ID: 49357 Updated by: u...@php.net Reported By: phpbug at r-o-b-e-r-t dot de -Status: Open +Status: Verified Bug Type: MySQLi related Operating System: Debian/Ubuntu/Gentoo PHP Version: 5.2.10 -Assigned To: +Assigned To: mysql New Comment:
Works with mysqlnd, fails with libmysql. Missing type in mysqli_api.c: @@ -373,6 +373,9 @@ #ifdef FIELD_TYPE_NEWDECIMAL case MYSQL_TYPE_NEWDECIMAL: #endif +#ifdef FIELD_TYPE_GEOMETRY + case MYSQL_TYPE_GEOMETRY: +#endif Previous Comments: ------------------------------------------------------------------------ [2009-08-25 20:01:02] bugs at r-o-b-e-r-t dot de Sorry for my double-posting of the same bug. But I got everytime an error, that the headers already was sent. So i tried several times to submit my bug, and did not recognize, that it was already submitted. SORRY!! regards - Robert ------------------------------------------------------------------------ [2009-08-25 14:55:11] phpbug at r-o-b-e-r-t dot de Description: ------------ As reported in Bug "#37671 MySQLi extension fails to recognize BIT colums" I have the same problem with a Spatial Column. The Column coord is a POINT Field. Reproduce code: --------------- Here is the Table-Definition: CREATE TABLE `user` ( `coord` point default NULL, ) ENGINE=InnoDB The Test Code: // $mysqli is an existing db connection $stmt = $mysqli->prepare("SELECT coord FROM user"); $stmt->execute(); $stmt->bind_result($res); while ($stmt->fetch() === true ) { debug_zval_dump($res); var_dump($res); } $stmt->close(); Expected result: ---------------- The binary representation of the point Actual result: -------------- The Output is the same as the BIT-Field Problem (#37671) Warning: mysqli_stmt::bind_result(): Server returned unknown type 255. Probably your client library is incompatible with the server version you use! in /home/robert/tmp/test.php on line 11 NULL refcount(1) NULL NULL refcount(1) NULL NULL refcount(1) NULL NULL refcount(1) NULL NULL refcount(1) NULL NULL refcount(1) NULL ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49357&edit=1