Commit cfd8bdf9 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Merge branch 'version/2.0' into version/2.1

* version/2.0:
  Backported the recent changes from Ensembl's DBConnection
parents f6b8cc48 71033bec
......@@ -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