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

From: Date: Thu, 06 Jan 2011 13:53:24 +0000
Subject: Req #39847 [Opn]: mysqli_fetch_[field|fields|field_direct] need to return db
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157672@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:         uw@php.net
 Reported by:        marzillo at emdeon dot com
 Summary:            mysqli_fetch_[field|fields|field_direct] need to
                     return db
 Status:             Open
 Type:               Feature/Change Request
 Package:            MySQLi related
 Operating System:   *
 PHP Version:        5.2.0
-Assigned To:        
+Assigned To:        mysql
 Block user comment: N
 Private report:     N

 New Comment:

Andrey? Sounds like a valid request... let's do....


Previous Comments:
------------------------------------------------------------------------
[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 (#157672) next »