Skip to content
Snippets Groups Projects
Commit c5fd7896 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

Merge pull request #112 from ckongEbi/master

Update insert sql for protein_feature to avoid duplicate unique keys
parents 45a08cb5 55fae713
No related branches found
No related tags found
No related merge requests found
......@@ -222,8 +222,10 @@ sub store {
$db->get_AnalysisAdaptor->store($analysis);
}
my $sth = $self->prepare(q{
INSERT INTO protein_feature
my $insert_ignore = $self->insert_ignore_clause();
my $sth = $self->prepare("
${insert_ignore} INTO protein_feature
( translation_id,
seq_start,
seq_end,
......@@ -236,7 +238,7 @@ sub store {
perc_ident,
evalue )
VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
});
");
$sth->bind_param(1, $translation_id, SQL_INTEGER);
$sth->bind_param(2, $feature->start, SQL_INTEGER);
......
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