Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: DBI::db error I am confused!

by kcott (Archbishop)
on Jan 04, 2021 at 01:48 UTC ( [id://11126255]=note: print w/replies, xml ) Need Help??


in reply to DBI::db error I am confused!

G'day traincity,

I suspect you're doing something like this:

my $dbh = DBI->connect(...); my $sth = $dbh->prepare(...); ... $dbh->finish();

As already pointed out by others, you probably don't need to use finish(). Please read the relevant documentation: "DBI: finish".

If, after reading the documentation, you decide that you do need to use finish(), it should be written like this:

$sth->finish();

You've been asked to show us your code more than once. Kindly ensure you do this before asking any further questions. As it is, we're working in the dark and just making guesses.

— Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-23 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found