in reply to Re^4: Writing Multiple Recordsets into a CSV file
in thread Writing Multiple Recordsets into a CSV file
[ This post assumes you are using DBD::Sybase. ]
You use
do { my $row = $_read_sth->fetchrow_arrayref(); print Dumper $row; } while ($_read_sth->{syb_more_results});
Normal use would be
while (my $row = $_read_sth->fetchrow_arrayref()) { print Dumper $row; }
The docs suggest
do { while (my $row = $sth->$_read_sth->fetchrow_arrayref()) { print Dumper $row; } } while ($_read_sth->{syb_more_results});
Not sure what this "syb_more_results" business is about, so I don't know if "Normal" is sufficient or if you need the outer loop, but what you are using now definitely looks wrong.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Writing Multiple Recordsets into a CSV file
by andreas1234567 (Vicar) on Apr 11, 2008 at 08:37 UTC | |
|
Re^6: Writing Multiple Recordsets into a CSV file
by sudip_dg77 (Novice) on Apr 11, 2008 at 09:22 UTC | |
by apl (Monsignor) on Apr 11, 2008 at 09:47 UTC | |
by andreas1234567 (Vicar) on Apr 11, 2008 at 09:49 UTC | |
by ikegami (Patriarch) on Apr 11, 2008 at 10:32 UTC |