Re: PEAR::DB: identical methods not inherited
| From: | Tomas V.V.Cox | Date: | Tue, 10 Jun 2003 16:41:20 +0000 |
| Subject: | Re: PEAR::DB: identical methods not inherited | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-17264@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Roman Neuhauser" <neuhauser@bellavista.cz>
To: "pear-dev" <pear-dev@lists.php.net>
Sent: Tuesday, June 10, 2003 1:23 PM
Subject: [PEAR-DEV] PEAR::DB: identical methods not inherited
> what was the motivation for putting identical fetchRow() methods into
> individual drivers when the code could be just once in DB::common?
>
There is no need to have DB_driver::fetchRow(). It is there just for BC
issues on old (and incorrect) usage:
$res = $db->query($sql);
$row = $db->fetchRow($res->result);
They all should be dropped time ago, just nobody did it.
Tomas V.V.Cox