Re: unifying DB extensions
| From: | Cynic | Date: | Wed, 14 Feb 2001 10:02:07 +0000 |
| Subject: | Re: unifying DB extensions | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-2388@lists.php.net to get a copy of this message | ||
At 10:38 14.2. 2001, Richard Lynch wrote the following:
--------------------------------------------------------------
>> PostgreSQL:
>> no error reporting
>
>Que?
>
>http://php.net/manual/en/function.pg-errormessage.php
Duh, thanks.
>Also, should you not be proposing xxx_error_message and xxx_error_number
>rather than the cryptic errno and misleading error? :-)
Well, no. I should be proposing xxx_get_error_message. :)
But IMO this is a good example of where principle purity
should succumb to practicallity. ovrimos_error is shorter
than ovrimos_error_message, and I do keep the name length
in mind, though it might not be obvious. Also, I don't think
either of them is cryptic or misleading. But, as always,
YMMV.
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz