diff options
author | Georg Richter <georg@php.net> | 2004-01-30 22:45:19 +0000 |
---|---|---|
committer | Georg Richter <georg@php.net> | 2004-01-30 22:45:19 +0000 |
commit | 1baf3d3478cad439a60bf52702291be257b0520d (patch) | |
tree | 5ff5b7245c8c0d1413145d3e6eca163f9b44adda | |
parent | 4b74d4fbbac84189b3e5566ade2fc81283ee6020 (diff) | |
download | php-git-1baf3d3478cad439a60bf52702291be257b0520d.tar.gz |
added nuw_rows property for statement object
-rw-r--r-- | ext/mysqli/mysqli_prop.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli_prop.c b/ext/mysqli/mysqli_prop.c index 79c6c63c01..80fe16a9fe 100644 --- a/ext/mysqli/mysqli_prop.c +++ b/ext/mysqli/mysqli_prop.c @@ -176,7 +176,9 @@ MYSQLI_MAP_PROPERTY_LONG(result_field_count_read, MYSQL_RES, field_count); MYSQLI_MAP_PROPERTY_LONG_LONG(result_num_rows_read, MYSQL_RES, row_count); /* statement properties */ + MYSQLI_MAP_PROPERTY_LONG_LONG(stmt_affected_rows_read, STMT, stmt->mysql->last_used_con->affected_rows); +MYSQLI_MAP_PROPERTY_LONG_LONG(stmt_num_rows_read, STMT, stmt->result->row_count); MYSQLI_MAP_PROPERTY_STRING(stmt_query_read, STMT, stmt->query); MYSQLI_MAP_PROPERTY_LONG(stmt_param_count_read, STMT, stmt->param_count); MYSQLI_MAP_PROPERTY_LONG(stmt_field_count_read, STMT, stmt->field_count); @@ -223,6 +225,7 @@ mysqli_property_entry mysqli_result_property_entries[] = { mysqli_property_entry mysqli_stmt_property_entries[] = { {"affected_rows", stmt_affected_rows_read, NULL}, + {"num_rows", stmt_num_rows_read, NULL}, {"query", stmt_query_read, NULL}, {"param_count", stmt_param_count_read, NULL}, {"field_count", stmt_field_count_read, NULL}, |