Skip to content
Snippets Groups Projects
Commit 12ff00ee authored by Jessica Severin's avatar Jessica Severin
Browse files

missing $sth->finish which caused auto disconnect

'invalidates 1 active statement handle' warning
parent 06034276
No related branches found
No related tags found
No related merge requests found
......@@ -169,6 +169,7 @@ sub fetch_by_translation_stable_id {
$sth->execute("$transl_stable_id");
my ($id) = $sth->fetchrow_array;
$sth->finish;
if ($id){
return $self->fetch_by_dbID($id);
} else {
......@@ -205,6 +206,7 @@ sub fetch_by_translation_id {
$sth->execute($id);
my ($dbID) = $sth->fetchrow_array;
$sth->finish;
if ($dbID){
return $self->fetch_by_dbID($dbID);
} else {
......
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