[CDBI] Re: Script that crashes mod_perl
Eric Just <e-just-angj7XTnwNpXfO9P/[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <[email protected]> |
>
>Personally, I would install Linux or FreeBSD. :-)
Unfortunately, not an option!
>Try googling "status 3221225477". There are a lot of hits, so it's apparently
>a common problem, and it's obviously Windows-specific. I doubt it has
>anything to do with Class::DBI.
To follow up on this mainly for posterity's sake:
Changing the following line in Class/DBI.pm's sth_to_objects method:
from
$sth->bind_columns(\(@data{ @{ $sth->{NAME_lc} } }));
to
$sth->bind_columns(\(@data{ @{ $sth->{NAME} } }));
Eliminated the problem. This seems OK since the FetchHashKeyName option is
passed to the database connection. Probably not advisable for everyone,
but for me, this little fix is needed. Not sure if the problem is with
DBI, DBD::Oracle, or Windows, or some deadly combination thereof, but
Windows/Oracle definitely does not like the $sth->{'Name_lc'} key for
statement handles here.
Thanks!
Eric
============================================
Eric Just
e-just-angj7XTnwNpXfO9P/[email protected]
dictyBase Programmer
Center for Genetic Medicine
Northwestern University
http://dictybase.org
============================================