Req #39847 [Asn]: mysqli_fetch_[field|fields|field_direct] need to return db

From: Date: Fri, 07 Jan 2011 18:29:06 +0000
Subject: Req #39847 [Asn]: mysqli_fetch_[field|fields|field_direct] need to return db
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157745@lists.php.net to get a copy of this message
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
 Type:               Feature/Change Request
 Package:            MySQLi related
 Operating System:   *
 PHP Version:        5.2.0
-Assigned To:        mysql
+Assigned To:        kalle
 Block user comment: N
 Private report:     N

 New Comment:

I implemented this in trunk for mysqli, keeping this open until its
decided whether this should be merged to 5.3


Previous Comments:
------------------------------------------------------------------------
[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)

« previous php.bugs (#157745) next »