Skip to content

Commit

Permalink
Added gp_id to the list of items in the hash returned for changes bet…
Browse files Browse the repository at this point in the history
…ween MicrobeDB versions.
  • Loading branch information
Matthew Laird committed Apr 11, 2011
1 parent 7048763 commit a36e0d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Versions.pm
Expand Up @@ -162,7 +162,7 @@ sub _get_version_hash {
my ($self, $ver) = @_;

my $dbh = $self->_db_connect();
my $sth = $dbh->prepare("SELECT replicon.rep_accnum, replicon.rpv_id, replicon.gpv_id, genomeproject.taxon_id FROM replicon, genomeproject WHERE genomeproject.gpv_id = replicon.gpv_id AND genomeproject.version_id = ? AND replicon.version_id = ?");
my $sth = $dbh->prepare("SELECT replicon.rep_accnum, replicon.rpv_id, replicon.gpv_id, genomeproject.taxon_id, genomeproject.gp_id FROM replicon, genomeproject WHERE genomeproject.gpv_id = replicon.gpv_id AND genomeproject.version_id = ? AND replicon.version_id = ?");
$sth->execute($ver, $ver);

my $ver_hash;
Expand All @@ -173,6 +173,7 @@ sub _get_version_hash {
$ver_hash->{$accnum}->{rpv_id} = $row[1];
$ver_hash->{$accnum}->{gpv_id} = $row[2];
$ver_hash->{$accnum}->{taxon_id} = $row[3];
$ver_hash->{$accnum}->{gp_id} = $row[4];
}

return $ver_hash;
Expand Down

0 comments on commit a36e0d1

Please sign in to comment.