Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Perl DBI + Access bind issues

by shmem (Canon)
on Dec 11, 2008 at 22:06 UTC ( #729784=note: print w/ replies, xml ) Need Help??


in reply to Perl DBI + Access bind issues

From the DBI pod:

The "do()" method can be used for non repeated non-"SELECT" statement (or with drivers that don't support placeholders):
$rows_affected = $dbh->do("UPDATE your_table SET foo = foo + 1");

As a pragmatic solution, I'd go with $dbh->do() rather than $sth = $dbh->prepare(); $sth->execute() to avoid having to write a patch ;-)

...but then, input sanitizing would rest heavily on my own shoulders...

update - uhm, scratch that, note the 'non-"SELECT" statement' above :-(

update 2: thinking about it again - the best solution is to grab a LART and make that user rename the columns.


Comment on Re: Perl DBI + Access bind issues
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-07-07 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls