Skip to content
Snippets Groups Projects
Commit df2fd8e4 authored by Andy Yates's avatar Andy Yates
Browse files

[ENSCORESW-334]. EnsemblGenomes can also hand over species. Fixed the query to...

[ENSCORESW-334]. EnsemblGenomes can also hand over species. Fixed the query to use an IN and bring EG in as well
parent 6c61625d
No related branches found
Tags cvs/release/ensemblgenomes/19-72
No related merge requests found
...@@ -123,14 +123,14 @@ join changelog_species cs using (changelog_id) ...@@ -123,14 +123,14 @@ join changelog_species cs using (changelog_id)
join species s using (species_id) join species s using (species_id)
where c.release_id = ? where c.release_id = ?
and (c.assembly = ? or c.repeat_masking = ?) and (c.assembly = ? or c.repeat_masking = ?)
and c.team = ? and c.team IN (?,?)
and c.status = ? and c.status = ?
and production_name = ? and s.production_name = ?
SQL SQL
my $production_name = $dba->get_MetaContainer()->get_production_name(); my $production_name = $dba->get_MetaContainer()->get_production_name();
$dba->dbc()->disconnect_if_idle(); $dba->dbc()->disconnect_if_idle();
my $release = $self->param('release'); my $release = $self->param('release');
my $params = [ $release, 'Y', 'Y', 'Genebuild', 'handed_over', $production_name ]; my $params = [ $release, 'Y', 'Y', 'Genebuild', 'EnsemblGenomes', 'handed_over', $production_name ];
my $prod_dba = $self->get_production_DBAdaptor(); my $prod_dba = $self->get_production_DBAdaptor();
my $result = $prod_dba->dbc()->sql_helper()->execute_single_result(-SQL => $sql, -PARAMS => $params); my $result = $prod_dba->dbc()->sql_helper()->execute_single_result(-SQL => $sql, -PARAMS => $params);
$prod_dba->dbc()->disconnect_if_idle(); $prod_dba->dbc()->disconnect_if_idle();
......
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