On Sun, 24 Sep 2000, Philip Warner wrote:

> Two routines do eccentric things when they can't find required supporting
> data:
> 
> pg_get_userbyid
> 
>     returns 'unknown (UID=<uid-number>)' when the UID does not exist.

[Snip]

> The proposal is to return NULL in the above cases - in the final case,
> probably also generate a NOTICE.

In these cases, is NULL = 0? - What if it returns the UID for "root"
(typically UID 0)... I think an error message should/would be better in
this case.

Just my $.02.


-- 
Dominic J. Eidson
                                        "Baruk Khazad! Khazad ai-menu!" - Gimli
-------------------------------------------------------------------------------
http://www.the-infinite.org/              http://www.the-infinite.org/~dominic/

Reply via email to