diff --git a/lib/private/allconfig.php b/lib/private/allconfig.php
index b8bba7986e60beb56a685934bcf73e1d9cdede04..8d4f13e5b9cf4b0853c0ec925c68b42769f0bf05 100644
--- a/lib/private/allconfig.php
+++ b/lib/private/allconfig.php
@@ -196,7 +196,7 @@ class AllConfig implements \OCP\IConfig {
 				'userid'		=> $userId,
 				'appid'			=> $appName,
 				'configkey'		=> $key,
-			], ['configvalue', 'userid', 'appid']);
+			], ['configkey', 'userid', 'appid']);
 			$affectedRows = 1;
 		} elseif ($exists) {
 			$data = array($value, $userId, $appName, $key);
diff --git a/lib/private/appframework/db/db.php b/lib/private/appframework/db/db.php
index 0824e108f49b0ffd924aa252886a1b9ca941bf99..a9c6fc1e9c791422c8ac43de9c37d7d1e326c769 100644
--- a/lib/private/appframework/db/db.php
+++ b/lib/private/appframework/db/db.php
@@ -127,6 +127,7 @@ class Db implements IDb {
 	 * @param array $input data that should be inserted into the table  (column name => value)
 	 * @param array|null $compare List of values that should be checked for "if not exists"
 	 *				If this is null or an empty array, all keys of $input will be compared
+	 *				Please note: text fields (clob) must not be used in the compare array
 	 * @return int number of inserted rows
 	 * @throws \Doctrine\DBAL\DBALException
 	 */
diff --git a/lib/private/db/adapter.php b/lib/private/db/adapter.php
index de7b04c74db97d534d0874203136a736ec79c683..8c251c82075c698c750f09849fe143c953675463 100644
--- a/lib/private/db/adapter.php
+++ b/lib/private/db/adapter.php
@@ -46,6 +46,7 @@ class Adapter {
 	 * @param array $input data that should be inserted into the table  (column name => value)
 	 * @param array|null $compare List of values that should be checked for "if not exists"
 	 *				If this is null or an empty array, all keys of $input will be compared
+	 *				Please note: text fields (clob) must not be used in the compare array
 	 * @return int number of inserted rows
 	 * @throws \Doctrine\DBAL\DBALException
 	 */
diff --git a/lib/private/db/adaptersqlite.php b/lib/private/db/adaptersqlite.php
index 31f88940f0b1bd1d3bf3b8634c8630240ec12ecf..a9106967333a3889473316ce7372484fd1367a53 100644
--- a/lib/private/db/adaptersqlite.php
+++ b/lib/private/db/adaptersqlite.php
@@ -25,6 +25,7 @@ class AdapterSqlite extends Adapter {
 	 * @param array $input data that should be inserted into the table  (column name => value)
 	 * @param array|null $compare List of values that should be checked for "if not exists"
 	 *				If this is null or an empty array, all keys of $input will be compared
+	 *				Please note: text fields (clob) must not be used in the compare array
 	 * @return int number of inserted rows
 	 * @throws \Doctrine\DBAL\DBALException
 	 */
diff --git a/lib/private/db/connection.php b/lib/private/db/connection.php
index 023e265f242d5bf109e7e71f7ab72f6d6fa187a0..8748f66b369de7656063e24c8ea9c71932a2e41a 100644
--- a/lib/private/db/connection.php
+++ b/lib/private/db/connection.php
@@ -163,6 +163,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
 	 * @param array $input data that should be inserted into the table  (column name => value)
 	 * @param array|null $compare List of values that should be checked for "if not exists"
 	 *				If this is null or an empty array, all keys of $input will be compared
+	 *				Please note: text fields (clob) must not be used in the compare array
 	 * @return int number of inserted rows
 	 * @throws \Doctrine\DBAL\DBALException
 	 */
diff --git a/lib/public/idbconnection.php b/lib/public/idbconnection.php
index 1117c2da9b20b5906ac3cb6e34cf426b1f262db0..38f5c7e2e59ed2e2587ca80ce619fbe9685b2a18 100644
--- a/lib/public/idbconnection.php
+++ b/lib/public/idbconnection.php
@@ -83,6 +83,7 @@ interface IDBConnection {
 	 * @param array $input data that should be inserted into the table  (column name => value)
 	 * @param array|null $compare List of values that should be checked for "if not exists"
 	 *				If this is null or an empty array, all keys of $input will be compared
+	 *				Please note: text fields (clob) must not be used in the compare array
 	 * @return int number of inserted rows
 	 * @throws \Doctrine\DBAL\DBALException
 	 */