Fixed, thanks.
Tim.
On Mon, Mar 01, 2004 at 05:00:09PM -0800, Dean Arnold wrote:
> I think I've found a (small) problem in the execute_for_fetch POD (ver. 1.41),
> in the example there's an extraneous $ins->execute()
> (either that, or I still don't understand how this works):
>
>
> my $sel = $dbh1->prepare("select foo, bar from table1");
> $sel->execute;
> my $ins = $dbh2->prepare("insert into table2 (foo, bar) values (?,?)");
>
> $ins->execute; <<<< What is this execute for ??? Is it needed ??
>
> my $fetch_tuple_sub = sub { $sel->fetchrow_arrayref };
> my @tuple_status;
> $rc = $ins->execute_for_fetch($fetch_tuple_sub, [EMAIL PROTECTED]);
> my @errors = grep { ref $_ } @tuple_status;
>
> Maybe a tiny nit to pick, but some erstwhile novice
> trying to use this example might get some odd behavior...
>
> Dean Arnold
> Presicient Corp.
> www.presicient.com