Req #39847 [Asn->Csd]: mysqli_fetch_[field|fields|field_direct] need to return db
Edit report at http://bugs.php.net/bug.php?id=39847&edit=1
ID: 39847
Updated by: kalle@php.net
Reported by: marzillo at emdeon dot com
Summary: mysqli_fetch_[field|fields|field_direct] need to
return db
-Status: Assigned
+Status: Closed
Type: Feature/Change Request
Package: MySQLi related
Operating System: *
PHP Version: 5.2.0
Assigned To: kalle
Block user comment: N
Private report: N
New Comment:
This will appear in PHP 5.3.6 :)
Previous Comments:
------------------------------------------------------------------------
[2011-01-17 12:20:56] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=307533
Log: MFT: Added 'db' and 'catalog' keys to the field fetching functions
(FR #39847)
------------------------------------------------------------------------
[2011-01-07 19:29:06] kalle@php.net
I implemented this in trunk for mysqli, keeping this open until its
decided whether this should be merged to 5.3
------------------------------------------------------------------------
[2011-01-07 19:25:57] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=307231
Log: Implemented FR #39847 (mysqli_fetch_[field|fields|field_direct]
need to return db)
------------------------------------------------------------------------
[2011-01-06 14:53:24] uw@php.net
Andrey? Sounds like a valid request... let's do....
------------------------------------------------------------------------
[2006-12-15 19:51:36] marzillo at emdeon dot com
Description:
------------
The mysqli functions fetch_field, fetch_fields and fetch_field_direct do
not return the db name when the C API allows it. For the past several
versions I have been adding the following code to mysqli_api.c to
include this field. Could this be included in future releases?
mysqli_fetch_field function
add_property_string(return_value, "db",(field->db ? field->db : ""),
1);
mysqli_fetch_fields function
add_property_string(obj, "db",(field->db ? field->db : ""), 1);
mysqli_fetch_field_direct
add_property_string(return_value, "db",(field->db ? field->db : ""),
1);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=39847&edit=1
Thread (5 messages)