From: rettenbe Date: Tue, 24 Mar 2009 13:33:32 +0000 (+0000) Subject: * fixes get_table_columns in DBsqlite X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e28bef1dee30477aa924a9e3db2888425fb0280d;p=gosa.git * fixes get_table_columns in DBsqlite git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13564 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/DBsqlite.pm b/gosa-si/modules/DBsqlite.pm index 5c9ae0c6f..920589257 100644 --- a/gosa-si/modules/DBsqlite.pm +++ b/gosa-si/modules/DBsqlite.pm @@ -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]); } }