Correct documentation

From: Date: Mon, 05 Sep 2005 13:31:31 +0000
Subject: Correct documentation
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20792@lists.php.net to get a copy of this message
I was reading the PEAR::DB documentation of method getOne(), and noticed that there is no info on what the function returns when there is no row to fetch from the query. Reading the source, and seeing that it calls method fetchInto(), I see that it returns NULL. It would be nice to have that documented, something like: Return value mixed - the first column's data, NULL if there's no data to return or a DB_Error object on failure -- 10:28:44 up 2 days, 1:23, 4 users, load average: 1.88, 0.72, 0.57 --------------------------------------------------------- Lic. Martín Marqués | SELECT 'mmarques' || Centro de Telemática | '@' || 'unl.edu.ar'; Universidad Nacional | DBA, Programador, del Litoral | Administrador ---------------------------------------------------------

« previous php.pear.general (#20792) next »