sub _has_next_packet
{
my $self = shift;
#substr($_[0], -1) ne "\xfe";
return substr($_[0], -5) ne "\xfe\0\0\x22\x00";
}
The problem is here. Incase the database is empty or has 1 record, the
return value will be \xfe\0\0\x02\x00
On Vr. Sep. 15 03:44:29 2006, kob wrote:
Show quoted text> It only seems to happen on an empty table. Once populated, an empty
> result doesn't cause the blocking effect ...
>
> On Vr. Sep. 15 03:25:49 2006, kob wrote:
> > Version 0.09.
> > If you execute a query, and no data is returned, the script keeps
> > waiting for input.
> > Example:
> > table with 4 columns, the first one is autoincrementing.
> > Of you do then:
> > SELECT * FROM table WHERE name1=a AND name2=b
> > you will get a first answer, the column names.
> > The Net::MySQL goes checking for further input but, there is no
input ...
Show quoted text> > So it keeps waiting.
> > Try it on an empty table ...
>
>