What database are you using? (my bet, Sybase or MS SQLServer). The idiom for Sybase is
do { while( my $row = $sth->fetch ) { ... } } while($sth->{syb_more_results});
because (from DBD::Sybase):
I've decided to handle this by returning an empty row at the end of each result set, and by setting a special Sybase attribute in $sth which you can check to see if there is more data to be fetched. The attribute is syb_more_results which you should check to see if you need to re-start the "fetch()" loop.
So I guess it all depends on how/what your KAP module handles multiple result sets.
As a side rant, I find multiple recordsets to be a premature optimization that should be avoided - but hey, that's just me.
In reply to Re: Writing Multiple Recordsets into a CSV file
by derby
in thread Writing Multiple Recordsets into a CSV file
by sudip_dg77
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |