Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Dynamic SQL

by sundialsvc4 (Abbot)
on Apr 06, 2015 at 23:38 UTC ( [id://1122634]=note: print w/replies, xml ) Need Help??


in reply to Dynamic SQL

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: Dynamic SQL
by Your Mother (Archbishop) on Apr 06, 2015 at 23:46 UTC
    …overlooked the fact that the argument to the statement-handle prepare() method is an array of @bind_values.

    WAT? Maybe it was overlooked because it’s—channeling BUK—twaddle. It takes a statement with optional hashref of attributes, not an array of anything, let alone bind values; from the DBI docs–

    $sth = $dbh->prepare($statement) or die $dbh->errstr; $sth = $dbh->prepare($statement, \%attr) or die $dbh->errstr;
Re^2: Dynamic SQL
by Anonymous Monk on Apr 06, 2015 at 23:53 UTC
    So, even though Perl will, if asked, “flatten” method-arguments, you don’t want to be doing that.

    Wrong, it is the default behavior of Perl to flatten arguments to subs.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-26 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found