On Tue, Mar 09, 2004 at 11:04:57AM -0800, Jeff Zucker wrote:
> I get a warning on 50dbm.t - odd, I could swear it wasn't there when I 
> uploaded :-(.  Anyway, it seems that BerkeleyDB will throw a warning 
> (not an error) when you attempt to insert an undef into a column.  The 
> warning goes away if I insert something other than NULL in the third 
> test insert.
> 
> This is perl, v5.8.1 built for MSWin32-x86-multi-thread
> (with 1 registered patch, see perl -V for more detail)
> 
> Copyright 1987-2003, Larry Wall
> 
> Binary build 807 provided by ActiveState Corp. http://www.ActiveState.com
> ActiveState is a division of Sophos.
> Built 18:19:11 Nov  3 2003
> ...
> t\50dbm................ok 23/66Use of uninitialized value in subroutine 
> entry at C:/Perl/site/lib/BerkeleyDB.pm line 1119, <DATA> line 23.

Ah, but what's *really* odd is that I only get the warning for the t/zz_50dbm_pp.t
test - ie exactly the same Driver and test code but run under DBI::PurePerl:

t/50dbm................ok
 ...
t/zz_50dbm_pp..........ok 48/55Use of uninitialized value in subroutine entry at 
/home/value/apps/perl5.6.1/lib/site_perl/5.6.1/i386-freebsd/BerkeleyDB.pm line 970.
t/zz_50dbm_pp..........ok

Odd.

Anyone care to discover why there's no error in the first case?
(I've no time to dig.)

Tim.

Reply via email to