making fatal errors warnings

From: Edward Peschko (esp5_at_pge.com)
Date: 07/16/04

  • Next message: Tim Johnson: "RE: making fatal errors warnings"
    Date: Thu, 15 Jul 2004 16:50:07 -0700
    To: dbi-users@perl.org
    
    

    hey all,

    How do you make errors that are otherwise fatal, warnings?

    I'm getting an oracle error which I think is a oracle bug (01801), and only
    effects one row of an otherwise large, large table. I'd like to be able to trap
    the error, skip the row, and load the rest of the table.. eval doesn't work, because

    eval
    {
            while ($line = $sth->fetchrow_arrayref())
            {
                    ...
            }
    }

    kills the whole loop, whereas I want to be able to terminate *one* row in the loop.
    (and it seems to be overkill to wrap each call to fetchrow_arrayref() in an eval,
    although I suppose I could do that..)

    Thanks much,

    Ed


  • Next message: Tim Johnson: "RE: making fatal errors warnings"

    Relevant Pages

    • Re: making fatal errors warnings
      ... > hey all, ... > How do you make errors that are otherwise fatal, warnings? ... > I'm getting an oracle error which I think is a oracle bug, ...
      (perl.dbi.users)
    • error during export on 9iR2
      ... During export on the server we get the same error per each table ... EXP-00008: ORACLE error 6552 encountered ... Finally we get "Export terminated successfully with warnings." ... and how to resolve it? ...
      (comp.databases.oracle.server)
    • Re: error during export on 9iR2
      ... vond wrote: ... During export on the server we get the same error per each table ... EXP-00008: ORACLE error 6552 encountered ... Finally we get "Export terminated successfully with warnings." ...
      (comp.databases.oracle.server)