Code

* fixes get_table_columns in DBsqlite
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Mar 2009 13:33:32 +0000 (13:33 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Mar 2009 13:33:32 +0000 (13:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13564 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/DBsqlite.pm

index 5c9ae0c6f249fac2c7ab3d489b1b5b150c056e5f..9205892579f9fdf431ba745a9bee602f6d1a8823 100644 (file)
@@ -272,8 +272,7 @@ sub get_table_columns {
        if(exists $col_names->{$table}) {
                @column_names = @{$col_names->{$table}};
        } else {
-               my @res;
-               foreach my $column ( $self->exec_statement ( "pragma table_info('$table')" ) ) {
+               foreach my $column ( @{$self->exec_statement ( "pragma table_info('$table')" )} ) {
                        push(@column_names, @$column[1]);
                }
        }