Skip to content
Snippets Groups Projects
Commit 46e776fb authored by Matthew Laird's avatar Matthew Laird Committed by GitHub
Browse files

Merge pull request #161 from avullo/feature/enable_local_load_data

[ENSCORESW-1997]. Enable local load data feature at the specific driv…
parents 8dff7226 4293e357
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,20 @@ use strict;
use base 'Bio::EnsEMBL::DBSQL::Driver';
#
# override parent's method to enable MySQL local load data in case DBD::mysql
# has been compiled against a C client library which has been built with
# no support for this feature
#
sub connect_params {
my ($self, $conn) = @_;
my $params = $self->SUPER::connect_params($conn);
$params->{attributes}{mysql_local_infile} = 1;
return $params;
}
sub from_date_to_seconds {
my ($self, $column) = @_;
return "UNIX_TIMESTAMP($column)";
......
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