Skip to content
Snippets Groups Projects
Commit 6573d90d authored by Ian Longden's avatar Ian Longden
Browse files

bug fix, be more specific when getting xref

parent 0cf4505d
No related branches found
No related tags found
No related merge requests found
......@@ -458,10 +458,12 @@ sub exists {
FROM xref x, external_db xdb
WHERE x.external_db_id = xdb.external_db_id
AND x.display_label = ?
AND xdb.db_name = ?');
AND xdb.db_name = ?
AND x.dbprimary_acc = ?');
$sth->bind_param(1,$dbe->display_id,SQL_VARCHAR);
$sth->bind_param(2,$dbe->dbname,SQL_VARCHAR);
$sth->bind_param(3,$dbe->primary_id,SQL_VARCHAR);
$sth->execute();
my ($dbID) = $sth->fetchrow_array;
......
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