From: cajus Date: Tue, 18 Mar 2008 10:11:00 +0000 (+0000) Subject: Added single ticks X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5c12fdb8cd695a89dadd9a1af4edebf9d7a387e4;p=gosa.git Added single ticks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9916 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/DBsqlite.pm b/gosa-si/modules/DBsqlite.pm index 0b5cd69dd..8eba13d47 100644 --- a/gosa-si/modules/DBsqlite.pm +++ b/gosa-si/modules/DBsqlite.pm @@ -156,7 +156,7 @@ sub add_dbentry { } } - my $sql_statement = "INSERT INTO $table (".join(", ", @col_list).") VALUES (".join(", ", @val_list).")"; + my $sql_statement = "INSERT INTO $table (".join(", ", @col_list).") VALUES ('".join("', '", @val_list)."')"; &create_lock($self,'add_dbentry'); my $db_res = $self->{dbh}->do($sql_statement); &remove_lock($self,'add_dbentry');