From e28bef1dee30477aa924a9e3db2888425fb0280d Mon Sep 17 00:00:00 2001 From: rettenbe Date: Tue, 24 Mar 2009 13:33:32 +0000 Subject: [PATCH] * fixes get_table_columns in DBsqlite git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13564 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/DBsqlite.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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]); } } -- 2.30.2