Commit d5c007fe authored by Andy Yates's avatar Andy Yates
Browse files

Do not quote identifiers if they are going into a prepared statement....

Do not quote identifiers if they are going into a prepared statement. Otherwise we end up with odd results
parent b766f062
......@@ -1117,9 +1117,8 @@ sub add_synonym{
if(!(defined $add_synonym_sth)){
$add_synonym_sth = $dbi->prepare('INSERT INTO synonym VALUES(?,?)');
}
$add_synonym_sth->execute( $xref_id, $dbi->quote($syn) )
or croak( $dbi->errstr() . "\n $xref_id\n " . $dbi->quote($syn) . "\n" );
$add_synonym_sth->execute( $xref_id, $syn )
or croak( $dbi->errstr()."\n $xref_id\n $syn\n\n" );
return;
}
......
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