Commit a4e9ace5 authored by Mira Prosovetskaia's avatar Mira Prosovetskaia

Test commpresed blob import

parent e2e286ba
Pipeline #97572 passed with stage
in 4 minutes and 1 second
......@@ -42,9 +42,16 @@ use base 'Bio::EnsEMBL::Test::MultiTestDB';
sub load_txt_dump {
my ($self, $txt_file, $tablename, $db) = @_;
my $load = sprintf(q{LOAD DATA LOCAL INFILE '%s' INTO TABLE `%s` FIELDS ESCAPED BY '\\\\'}, $txt_file, $tablename);
$db->do($load);
return $db;
if($txt_file eq 'compressed_genotype_var') {
my $load = sprintf(q{LOAD DATA LOCAL INFILE '%s' INTO TABLE `%s` (variation_id, subsnp_id, @var1) FIELDS ESCAPED BY '\\\\' SET genotypes = UNHEX(@var1)}, $txt_file, $tablename);
$db->do($load);
return $db;
} else {
my $load = sprintf(q{LOAD DATA LOCAL INFILE '%s' INTO TABLE `%s` FIELDS ESCAPED BY '\\\\'}, $txt_file, $tablename);
$db->do($load);
return $db;
}
}
sub create_and_use_db {
......
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