Commit 9955a351 authored by Ian Longden's avatar Ian Longden
Browse files

fixed sql syntax

parent 93896f0f
......@@ -95,7 +95,7 @@ sub get_valid_codes{
foreach my $source (@sources){
$sql = 'select x.accession, x.xref_id from xref x, interpro i where i.interpro = x.accession and x.species_id = '.$species_id.
' and x.source_id = '.$source.' and i.dbtype ne "PRINTS"';
' and x.source_id = '.$source.' and i.dbtype != "PRINTS"';
my $sth = $self->dbi()->prepare($sql);
$sth->execute();
while(my @row = $sth->fetchrow_array()){
......
Markdown is supported
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