in reply to mysql perl hangs on selects
apache error_log shows no error! perl.exe still runs ...the select statement SELECT table1.id, table1.id2, table1.id3 ,table2.name FROM table2, table1 WHERE table1.id = 'something' and table1.id=table2.idmy ($result_ref, $columnNames_ref, $numFields) = fetchRowArray($dbh, +$sql); ... sub fetchRowArray($$){ my $dbh = shift; my $sql = shift; my $sth = $dbh->prepare($sql) or meldeFehler("Statement could not pr +epared"); $sth->execute() or meldeFehler("Statement could not executed"); my $columnNames; $columnNames = $sth->{NAME}; my $numfields; $numfields = $sth->{NUM_OF_FIELDS}; my (@matrix) = (); while (my @ary = $sth->fetchrow_array()) { push(@matrix, [@ary]); } $sth->finish(); return \@matrix, $columnNames, $numfields; }
- Comment on Re: mysql perl hangs on selects
- Download Code
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: mysql perl hangs on selects
by dbwiz (Curate) on Jul 24, 2003 at 08:46 UTC | |
|
Re: Re: mysql perl hangs on selects
by nite_man (Deacon) on Jul 24, 2003 at 08:35 UTC | |
|
Re: Re: mysql perl hangs on selects
by Murcia (Monk) on Jul 24, 2003 at 09:04 UTC |