From: Joas Schilling Date: Mon, 16 Mar 2015 14:41:00 +0000 (+0100) Subject: Also add a note that clob does not work in the compare array X-Git-Tag: v8.1.0alpha1~276^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c2a5bd6a01be635f3d1c59f624cda337f05c4237;p=nextcloud-server.git Also add a note that clob does not work in the compare array --- diff --git a/lib/private/appframework/db/db.php b/lib/private/appframework/db/db.php index 0824e108f49..a9c6fc1e9c7 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 de7b04c74db..8c251c82075 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 31f88940f0b..a9106967333 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 023e265f242..8748f66b369 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 1117c2da9b2..38f5c7e2e59 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 */