From 8a630b54557148813e06e1dc24e1b5ba085acaac Mon Sep 17 00:00:00 2001 From: rettenbe Date: Wed, 5 Mar 2008 13:05:30 +0000 Subject: [PATCH] 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 --- gosa-si/modules/DBsqlite.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); -- 2.30.2