Massimiliano Pala schrieb:
> 
> Michael Bell wrote:
> >
> > I use the following:
> > failed:
> > -------
> > return undef and set errno (works for a failing new() too if you are
> > using OpenCA::DBI->errno() directly :-D)
> 
> This can work althought it should not be raccomended accessing directly
> object's value... :-D

The normal way is $db->errno ();

> The undef value is ok so we can use check like:
> 
>         if ( not $obj->sub() ) {
>                 error!;
>         } else {
>                 ok!;
>         }

Ups, this doen't work. If $obj->sub () returns 0 then the operation was
successful but 0 is a false value! I'm using in the module DBI "if (not
defined $obj->sub())".

The normal way is $db->errno ();

Michael
-----------------------------------------------------------------------
Michael Bell                       E-Mail: [EMAIL PROTECTED]
Rechenzentrum - Datacenter           Tel.: +49+(0)30-2093-2482
Humboldt-University of Berlin        Fax.: +49+(0)30-2093-2959
Unter den Linden 6
10099 Berlin
Germany

Kryptographische Unterschrift mit S/MIME

Reply via email to