On Thu, Jul 11, 2002 at 11:35:20AM -0400, Phil R Lawrence wrote:
> Tim Bunce wrote:
> > Binding an undef should work and be treated as a NULL.
> >
> > Probably a bug in your code or the driver. But you didn't
> > say which driver.
> 
> Hmmm.  quite right, undefs do bind as NULL.  However, in this case I am
> binding $hash{non-existent-key}, which autoinstantiates to an undef, and looks
> like this in the trace:
>   undef (magic-sg:y)

Yes, the value from $hash{non-existent-key} is 'magical' to ensure that
the hash doesn't get the entry if nothing is assigned to it.

> Of course it was my dumb fault for having the wrong key for lookup, but
> nonetheless, perhaps this should work the same as a normal undef.

It should. Looks like a bug in DBD::ODBC.

Tim.

> # $DBI::VERSION = "1.14";
> # $DBD::ODBC::VERSION = '0.28';
> $DSN = 'driver=Microsoft Access Driver (*.mdb);dbq=StudyManager.mdb';

Reply via email to