in reply to fetchall_arrayref({}) call freezing
my $sql = 'SELECT DP1,DP2 FROM Table1'; my $sth = $dbh->prepare($sql); my $rc = $sth->execute || &pl_fatalSQLError($sql,$DBI::errstr); my $resultsArrayRef = $sth->fetchall_arrayref({});# <-- nothing ha +ppens past here $sth->finish();
To:
my $sql = 'SELECT * FROM Table1'; my $sth = $dbh->prepare($sql); my $rc = $sth->execute || &pl_fatalSQLError($sql,$DBI::errstr); my $resultsArrayRef = $sth->fetchall_arrayref({}); $sth->finish();
allows the script to function. Can anyone explain why? I am totally flummoxed. I am running into similar behavior elsewhere (currently troubleshooting to see if it is the same problem), but need to get to the bottom of this while I still have hair to pull out!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: fetchall_arrayref({}) call freezing
by McA (Priest) on Mar 14, 2014 at 12:18 UTC | |
by banesong (Acolyte) on Mar 24, 2014 at 18:55 UTC |