Skip to content
Snippets Groups Projects
Commit 7fb066b7 authored by Monika Komorowska's avatar Monika Komorowska
Browse files

fix to get_stored_methods

parent aa3c4914
No related branches found
No related tags found
No related merge requests found
......@@ -142,9 +142,18 @@ sub no_dump_xref {
sub get_stored_methods {
my ($self) = @_;
my $methods = $self->xref()->dbc()->selectcol_arrayref("select distinct method from source_mapping_method order by method");
return $methods;
my $sth = $self->xref()->dbc->prepare("select distinct method from source_mapping_method order by method");
$sth->execute();
my $method;
my @methods;
$sth->bind_columns(\$method);
while($sth->fetch()){
push(@methods,$method);
}
$sth->finish;
return \@methods;
}
......
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