Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Recalcitrant placeholders

by afoken (Chancellor)
on Jul 06, 2021 at 21:21 UTC ( [id://11134729]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @row_ary = $dbh->selectrow_array($statement);
    @row_ary = $dbh->selectrow_array($statement, \%attr);
    @row_ary = $dbh->selectrow_array($statement, \%attr, @bind_values);
    
  2. or download this
    use Try::Tiny;
    $dbh->{AutoCommit} = 0;  # enable transactions, if possible
    ...
        eval { $dbh->rollback };
        # add other application on-error-clean-up code here
    };
    
  3. or download this
    $dbh->{AutoCommit} = 0;  # enable transactions, if possible
    $dbh->{RaiseError} = 1;
    ...
        eval { $dbh->rollback };
        # add other application on-error-clean-up code here
    };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11134729]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-23 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found