Code

bugfix for sqlite3.0, workaround for broken db schema
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 07:52:10 +0000 (07:52 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 07:52:10 +0000 (07:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10490 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/DBsqlite.pm

index bf6a63ac5dfbb6cc3d1c44d5e6f7eaaaf9c2a210..5881ebeb66de83767ecf9a24208cdd374ce91be6 100644 (file)
@@ -230,6 +230,7 @@ sub exec_statement {
     my $self = shift;
     my $sql_statement = shift;
 
+       $self->{dbh}->do("ANALYZE");
     my @db_answer = @{$self->{dbh}->selectall_arrayref($sql_statement)};
 
     return \@db_answer;