georg           Fri Jan 30 17:45:20 2004 EDT

  Modified files:              
    /php-src/ext/mysqli mysqli_prop.c 
  Log:
  added nuw_rows property for statement object
  
  
http://cvs.php.net/diff.php/php-src/ext/mysqli/mysqli_prop.c?r1=1.8&r2=1.9&ty=u
Index: php-src/ext/mysqli/mysqli_prop.c
diff -u php-src/ext/mysqli/mysqli_prop.c:1.8 php-src/ext/mysqli/mysqli_prop.c:1.9
--- php-src/ext/mysqli/mysqli_prop.c:1.8        Wed Jan 28 17:51:54 2004
+++ php-src/ext/mysqli/mysqli_prop.c    Fri Jan 30 17:45:19 2004
@@ -15,7 +15,7 @@
   | Author: Georg Richter <[EMAIL PROTECTED]>                                |
   +----------------------------------------------------------------------+
 
-  $Id: mysqli_prop.c,v 1.8 2004/01/28 22:51:54 georg Exp $ 
+  $Id: mysqli_prop.c,v 1.9 2004/01/30 22:45:19 georg Exp $ 
 */
 
 #ifdef HAVE_CONFIG_H
@@ -176,7 +176,9 @@
 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_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},

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to