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 2003/04/21 19:37:14 UTC

Re: problem with Apache::DBI 0.91in Mandrake 9.1 solved

Hi there,

On Mon, 21 Apr 2003, Hector Pizarro wrote:

> Hi I'm new to the list [snip,snip]

Welcome!

> Apache::DBI 0.91.

> t/10mysql....dubious
>         Test returned status 4 (wstat 1024, 0x400)
> Scalar found where operator expected at (eval 151) line 1, near "'int' 

> you can see code like this one:
> 
> ok(my $thread_1 = $dbh_1->{'mysql_thread_id'}, "Connected 1");
> 
> In the line the script tries to get the ID of the present thread from MySQL.
> Checking the documentation of DBD::mysql it says this data must be get this
> way:
> 
> $threadId = $dbh->{'thread_id'};
> 
> Has this changed from previous versions?

Yes.  I'm still using Perl 5.005_03 with DBD::mysql 2.1011 on my
public servers.  It's useful to know about the change, thanks!


> My excuses if this is somewhat confusing, this is my first bug post.

Not at all, it's very clear.

73,
Ged.