Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Recalcitrant placeholders

by afoken (Canon)
on Jul 06, 2021 at 21:21 UTC ( #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? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2022-01-25 17:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (67 votes). Check out past polls.

    Notices?