Commit 559c197c authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Merge branch 'version/2.2'

* version/2.2:
  Backported the recent changes from Ensembl's DBConnection
parents de29ee23 c49c292b
......@@ -809,7 +809,7 @@ sub reconnect {
=cut
sub do {
my ($self,$string) = @_;
my ($self,$string, $attr, @bind_values) = @_;
if( ! $string ) {
throw("Attempting to do an empty SQL query.");
......@@ -820,7 +820,7 @@ sub do {
my $do_result = $self->work_with_db_handle(sub {
my ($dbh) = @_;
my $result = eval { $dbh->do($string) };
my $result = eval { $dbh->do($string, $attr, @bind_values) };
$error = $@ if $@;
return $result;
});
......
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