From: janw Date: Mon, 21 Apr 2008 14:06:40 +0000 (+0000) Subject: Removed analyze. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=32638968fe24c782eb404931b168c8130733b651;p=gosa.git Removed analyze. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10592 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/DBsqlite.pm b/gosa-si/modules/DBsqlite.pm index ddf709af0..420a56949 100644 --- a/gosa-si/modules/DBsqlite.pm +++ b/gosa-si/modules/DBsqlite.pm @@ -286,15 +286,16 @@ sub exec_statementlist { my $sql_list = shift; my @db_answer; - $self->{dbh}->do("ANALYZE"); foreach my $sql (@$sql_list) { eval { - push @db_answer, @{$self->{dbh}->selectall_arrayref($sql)}; + my @answer = @{$self->{dbh}->selectall_arrayref($sql)}; + push @db_answer, @answer; }; if($@) { $self->{dbh}->do("ANALYZE"); eval { - push @db_answer, @{$self->{dbh}->selectall_arrayref($sql)}; + my @answer = @{$self->{dbh}->selectall_arrayref($sql)}; + push @db_answer, @answer; }; if($@) { &main::daemon_log("ERROR: $sql failed with $@", 1);