Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.5

Bug #642 can't perform count if there's an null field
Submitted: 2004-01-29 16:37 UTC
From: maka3d at yahoo dot com dot br Assigned: alan_k
Status: Closed Package: DB_DataObject
PHP Version: Irrelevant OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2004-01-29 16:37 UTC] maka3d at yahoo dot com dot br
Description: ------------ $user = DB_DataObject::factory('Users'); $user->nome = "Mary"; echo $u->count(); // WORKS require_once 'DB/DataObject/Cast.php'; $user->email = DB_DataObject_Cast::sql('NULL'); echo $user->count(); // DOES NOT WORS Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /usr/local/share/pear/DB/mysql.php on line 653

Comments

 [2004-01-30 00:36 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-02-02 07:35 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!