From c7dfb7c0426f8278b3c0f2c5d97e6bbae25503a0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 31 Jul 2013 14:32:54 +0200 Subject: [PATCH] Fix INSERT undefined values for NOT NULL columns (Bug #2038) --- plugins/libkolab/lib/kolab_storage_cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/libkolab/lib/kolab_storage_cache.php b/plugins/libkolab/lib/kolab_storage_cache.php index a3b6626d..ba6c1065 100644 --- a/plugins/libkolab/lib/kolab_storage_cache.php +++ b/plugins/libkolab/lib/kolab_storage_cache.php @@ -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' );