Skip to content
Snippets Groups Projects
Commit 1507aefa authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Use the coord_system table from the database connected as the 'dnadb'

database in new().
parent 5145c723
No related branches found
No related tags found
No related merge requests found
......@@ -25,10 +25,12 @@ sub new {
#
my $sth = $self->prepare(
sprintf(
'SELECT mc.table_name, mc.coord_system_id, mc.max_length '
. 'FROM meta_coord mc, coord_system cs '
. 'FROM meta_coord mc, %s.coord_system cs '
. 'WHERE mc.coord_system_id = cs.coord_system_id '
. 'AND cs.species_id = ?' );
. 'AND cs.species_id = ?',
$self->db()->dnadb()->dbc()->dbname() ) );
$sth->bind_param( 1, $self->species_id(), SQL_INTEGER );
$sth->execute();
......
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