Fix INSERT undefined values for NOT NULL columns (Bug #2038)

This commit is contained in:
Aleksander Machniak 2013-07-31 14:32:54 +02:00
parent fd645a9e96
commit c7dfb7c042

View file

@ -712,8 +712,8 @@ class kolab_storage_cache
// create lock record if not exists
if (!$sql_arr) {
$this->db->query(
"INSERT INTO kolab_cache (resource, type, msguid, created, uid, data, xml)".
" VALUES (?, ?, 1, " . $this->db->now() . ", '', '', '')",
"INSERT INTO kolab_cache (resource, type, msguid, created, uid, data, xml, tags, words)".
" VALUES (?, ?, 1, " . $this->db->now() . ", '', '', '', '', '')",
$this->resource_uri,
'lock'
);