You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Ged Haywood <ge...@www2.jubileegroup.co.uk> on 2002/03/13 11:29:51 UTC

Re: Blank Pages ( Revisited ) [Semi-OT]

Hi there,

On Wed, 13 Mar 2002 max.calvo@maxcalvo.net wrote:

> However, when I do a "random" query I get some blank pages. I traced this to 
> the DBI Log using the "DBH->Trace(2, /tmp/DBI.log)". I found that sometimes 
> the "execute()" returns "0E0". Does anybody knows why?? 

It probably means zero multiplied by ten to the power zero, or to put
it another way, zero.

73,
Ged.



Re: Blank Pages ( Revisited ) [Semi-OT]

Posted by Andy Lester <an...@petdance.com>.
> > However, when I do a "random" query I get some blank pages. I traced this to
> > the DBI Log using the "DBH->Trace(2, /tmp/DBI.log)". I found that sometimes
> > the "execute()" returns "0E0". Does anybody knows why??
>
> It probably means zero multiplied by ten to the power zero, or to put
> it another way, zero.

Perl has three values that are false: 0, "" and undef.  Anything else is
true.

OE0 is the "0 but true" value that DBI uses to signal that zero rows were
returned, but succeeded.

xoxo,
Andy

-- 
'Andy Lester        andy@petdance.com
 Programmer/author  petdance.com
 Daddy              parsley.org/quinn   Jk'=~/.+/s;print((split//,$&)
                            [unpack'C*',"n2]3%+>\"34.'%&.'^%4+!o.'"])


Re: Blank Pages ( Revisited ) [Semi-OT]

Posted by Ron Savage <ro...@savage.net.au>.
On Wed, 13 Mar 2002 10:29:51 +0000 (GMT), Ged Haywood wrote:
>Hi there,
>
>On Wed, 13 Mar 2002 max.calvo@maxcalvo.net wrote:
>
>>However, when I do a "random" query I get some blank pages. I
>>traced this to
>>the DBI Log using the "DBH->Trace(2, /tmp/DBI.log)". I found that
>>sometimes
>>the "execute()" returns "0E0". Does anybody knows why??

It's DBI's way of saying 0 (records returned) but true. Ie It's 
deliberate.


-- 
Ron Savage, ron@savage.net.au on 13/3/02
http://savage.net.au/index.html