Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Are there DBD drivers for mysql with transactions (4.0.1)?

Status
Not open for further replies.

svar

Programmer
Aug 12, 2001
349
GR
.... here is what I get:
...
DBD driver has not implemented the AutoCommit attribute at perlscript.pl line 1064, <IN> line 12911.
Issuing rollback() for database handle being DESTROY'd without explicit disconnect(), <IN> line 12911

Thanks,
svar
 
Have you looked in CPAN? There's always a better way...
 
I tried on a simpler piece of code and looks like this
is not the problem(or rather the problem may be a misleading diagnostic from DBI). I mean I get the simpler script to run fine, for instance

foreach my $i(@array){
$dbh->{AutoCommit}=0;
eval{
$dbh->insert($i);
$dbh->commit();
};
$dbh->{AutoCommit}=1;
}

this runs fine, so the diagnostic message is wrong

svar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top