From 32638968fe24c782eb404931b168c8130733b651 Mon Sep 17 00:00:00 2001 From: janw Date: Mon, 21 Apr 2008 14:06:40 +0000 Subject: [PATCH] Removed analyze. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10592 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/DBsqlite.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); -- 2.30.2