Commit 9bd4f9e4 authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: propagate no_sql_schema_version_check parameter through the...

bugfix: propagate no_sql_schema_version_check parameter through the URLFactory/DBAdaptor loop (should be re-factored at some point)
parent 447168c3
......@@ -51,6 +51,8 @@ sub new {
my ($url, $no_sql_schema_version_check) = rearrange(['URL', 'NO_SQL_SCHEMA_VERSION_CHECK'], @args);
$url .= ';nosqlvc=1' if($url && $no_sql_schema_version_check);
my $self = $url
? (Bio::EnsEMBL::Hive::URLFactory->fetch($url) || die "Unable to connect to DBA using url='$url'\n")
: ($class->SUPER::new(@args) || die "Unable to connect to DBA using parameters (".join(', ', @args).")\n");
......
......@@ -141,8 +141,9 @@ sub create_cached_dba {
$port ||= 3306;
}
my $type = $conn_params->{'type'};
my $discon = $conn_params->{'discon'};
my $type = $conn_params->{'type'};
my $discon = $conn_params->{'discon'};
my $nosqlvc = $conn_params->{'nosqlvc'};
my $connectionKey = "$driver://$user:$pass\@$host:$port/$dbname;$type";
my $dba = $_URLFactory_global_instance->{$connectionKey};
......@@ -167,6 +168,7 @@ sub create_cached_dba {
-dbname => $dbname,
-species => $dbname,
-disconnect_when_inactive => $discon,
-no_sql_schema_version_check => $nosqlvc,
);
}
return $dba;
......
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