Commit 4c603c9e authored by Xavier Guimard's avatar Xavier Guimard

Remove SQL transactions since "AutoCommit" is on (#1118)

parent aecc815e
......@@ -17,8 +17,6 @@ sub store {
my $req;
my $lastCfg = $self->lastCfg;
$self->_dbh->begin_work;
eval { $self->_dbh->do("BEGIN") };
if ( $lastCfg == $cfgNum ) {
$req = $self->_dbh->prepare(
"UPDATE $self->{dbiTable} SET field=?, value=? WHERE cfgNum=? AND field=?"
......@@ -46,7 +44,6 @@ sub store {
return UNKNOWN_ERROR;
}
}
eval { $self->_dbh->do("COMMIT") };
return $cfgNum;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment