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

debugged syntax

parent 80a294b5
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@
# Let the code begin...
package Bio::EnsEMBL::Compara::DBSQL::AnalysisDataAdaptor;
package Bio::EnsEMBL::Hive::DBSQL::AnalysisDataAdaptor;
use strict;
use Bio::EnsEMBL::DBSQL::BaseAdaptor;
......@@ -47,13 +47,13 @@ our @ISA = qw(Bio::EnsEMBL::DBSQL::BaseAdaptor);
sub fetch_by_dbID {
my ($self, $data_id) = @_;
my $sql = "SELECT data FROM analysis_datae WHERE analysis_data_id = ?";
my $sql = "SELECT data FROM analysis_data WHERE analysis_data_id = ?";
my $sth = $self->prepare($sql);
$sth->execute($sequence_id);
$sth->execute($data_id);
my ($sequence) = $sth->fetchrow_array();
my ($data) = $sth->fetchrow_array();
$sth->finish();
return $sequence;
return $data;
}
......@@ -70,11 +70,11 @@ sub store {
my $sth = $self->prepare("SELECT analysis_data_id FROM analysis_data WHERE data = ?");
$sth->execute($data);
($seqID) = $sth->fetchrow_array();
($data_id) = $sth->fetchrow_array();
$sth->finish;
if($data_id) {
# print("sequence already stored as id $seqID\n");
# print("data already stored as id $data_id\n");
return $data_id;
}
......
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