On Tue, Jul 16, 2002 at 03:36:52PM -0500, Philip Molter wrote:
> I'm not sure exactly where the problems lie, but the symptoms are
> that when I try to use methods like selectrow_array() and
> selectrow_arrayref(), I get an error failing on calling prepare()
> on an undefined object.
> 
> If I install DBI 1.29 flat-out followed by DBD::mysql (1.2219 or
> 2.1017), it works fine.

What does "flat-out" mean here, exactly?

> If I install DBI 1.28 then DBD::mysql,
> then I upgrade DBI to 1.29 and then recompile DBD::mysql, it fails.
> This is happening on both Solaris and Linux, so it doesn't seem to
> be a platform issue.  Both machines are perl 5.6.1.
> 
> So I compare the two installations.  The only difference is the
> mysql.so file in site_perl/5.6.1/<arch>/auto/DBD/mysql.  When
> DBD::mysql is compiled for 1.28 or 1.29 original (no upgrade), the
> respective .so files are identical and work.  When I upgrade DBI
> 1.28 to 1.29 and recompile DBD::mysql, the .so file is different,
> and it doesn't work.

When you "recompile" and you doing a "make clean; perl Makefile.PL",
or just a "make"? If you're not doing a make clean, try it.

> Any ideas at all why this is happening?

Compare a trace(9) for the two cases calling selectrow_arrayref,
for example, between the call entering selectrow_arrayref and the error.

Tim.

Reply via email to