From: rettenbe Date: Wed, 5 Mar 2008 13:05:30 +0000 (+0000) Subject: bugfix at create_table: column names are now with '' in sql-statement X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8a630b54557148813e06e1dc24e1b5ba085acaac;p=gosa.git bugfix at create_table: column names are now with '' in sql-statement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9356 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/DBsqlite.pm b/gosa-si/modules/DBsqlite.pm index b2b628fd5..11d48fe6d 100644 --- a/gosa-si/modules/DBsqlite.pm +++ b/gosa-si/modules/DBsqlite.pm @@ -79,8 +79,8 @@ sub create_table { } $col_names->{ $table_name } = $col_names_ref; - my $col_names_string = join(', ', @col_names); - my $sql_statement = "CREATE TABLE IF NOT EXISTS $table_name ( $col_names_string )"; + my $col_names_string = join("', '", @col_names); + my $sql_statement = "CREATE TABLE IF NOT EXISTS $table_name ( '$col_names_string' )"; &create_lock($self,'create_table'); $self->{dbh}->do($sql_statement); &remove_lock($self,'create_table');