summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_api.c
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2011-01-07 18:25:55 +0000
committerKalle Sommer Nielsen <kalle@php.net>2011-01-07 18:25:55 +0000
commit69a3575b380750380edb764c86e96af9e7ed849c (patch)
treec14b028fd0a9e45d20cd094a9484e6af214b9217 /ext/mysqli/mysqli_api.c
parentee62a1a747008daed716dfd9e32eb20676ed166e (diff)
downloadphp-git-69a3575b380750380edb764c86e96af9e7ed849c.tar.gz
Implemented FR #39847 (mysqli_fetch_[field|fields|field_direct] need to return db)
Diffstat (limited to 'ext/mysqli/mysqli_api.c')
-rw-r--r--ext/mysqli/mysqli_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c
index 487474efc9..c75c9f8ec2 100644
--- a/ext/mysqli/mysqli_api.c
+++ b/ext/mysqli/mysqli_api.c
@@ -1052,6 +1052,7 @@ static void php_add_field_properties(zval *value, const MYSQL_FIELD *field TSRML
add_property_string(value, "table",(field->table ? field->table : ""), 1);
add_property_string(value, "orgtable",(field->org_table ? field->org_table : ""), 1);
add_property_string(value, "def",(field->def ? field->def : ""), 1);
+ add_property_string(value, "db",(field->db ? field->db : ""), 1);
add_property_long(value, "max_length", field->max_length);
add_property_long(value, "length", field->length);