andrey          Sun Oct  9 13:03:03 2005 EDT

  Modified files:              (Branch: PHP_5_1)
    /php-src/ext/mysqli mysqli_api.c 
  Log:
  add charsetnr and length to the object returned. this is kind of bug
  because fetch_fields() and fetch_field() return that info and 
  fetch_field_direct() does not
  
  
http://cvs.php.net/diff.php/php-src/ext/mysqli/mysqli_api.c?r1=1.118.2.1&r2=1.118.2.2&ty=u
Index: php-src/ext/mysqli/mysqli_api.c
diff -u php-src/ext/mysqli/mysqli_api.c:1.118.2.1 
php-src/ext/mysqli/mysqli_api.c:1.118.2.2
--- php-src/ext/mysqli/mysqli_api.c:1.118.2.1   Thu Sep 22 16:14:34 2005
+++ php-src/ext/mysqli/mysqli_api.c     Sun Oct  9 13:03:01 2005
@@ -15,7 +15,7 @@
   | Author: Georg Richter <[EMAIL PROTECTED]>                                |
   +----------------------------------------------------------------------+
 
-  $Id: mysqli_api.c,v 1.118.2.1 2005/09/22 20:14:34 tony2001 Exp $ 
+  $Id: mysqli_api.c,v 1.118.2.2 2005/10/09 17:03:01 andrey Exp $ 
 */
 
 #ifdef HAVE_CONFIG_H
@@ -802,6 +802,8 @@
        add_property_string(return_value, "orgtable",(field->org_table ? 
field->org_table : ""), 1);
        add_property_string(return_value, "def",(field->def ? field->def : ""), 
1);
        add_property_long(return_value, "max_length", field->max_length);
+       add_property_long(return_value, "length", field->length);
+       add_property_long(return_value, "charsetnr", field->charsetnr);
        add_property_long(return_value, "flags", field->flags);
        add_property_long(return_value, "type", field->type);
        add_property_long(return_value, "decimals", field->decimals);

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

Reply via email to