ctaustin has asked for the wisdom of the Perl Monks concerning the following question:
Does anyone know how I can capture the specifics of the row that is actually failing? Based on the behavior, it appears as though the behavior is that the array @cols isn't populated when the error occurs. Regardswhile ((@cols)=$sth->fetchrow_array){ if ($row_id) { $cur_rowid=$cols[0]; @cols=(@cols[1..$col_cnt]); print OFILE join "$delimiter" => (@cols),"\n"; } else { print OFILE join "$delimiter" => (@cols),"\n"; } } #end while
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: get rowid for failed records using dbi
by Anonymous Monk on Jul 15, 2005 at 22:25 UTC | |
|
Re: get rowid for failed records using dbi
by ctaustin (Sexton) on Jul 16, 2005 at 05:31 UTC | |
|
Re: get rowid for failed records using dbi
by Anonymous Monk on Jul 16, 2005 at 07:00 UTC | |
by ctaustin (Sexton) on Jul 17, 2005 at 16:39 UTC | |
|
Re: get rowid for failed records using dbi
by ctaustin (Sexton) on Jul 18, 2005 at 15:57 UTC |