diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-16 15:41:00 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-16 17:02:00 +0100 |
commit | 9ad48e0fe9377189dc3ff09a820b7dc61d31ef9f (patch) | |
tree | 005c3c3c6adc8e1e54c6320aa7e9f91d70d1ed36 /lib | |
parent | 97a65e153d9810198c19cd5d8727856a99ae211c (diff) | |
download | nextcloud-server-9ad48e0fe9377189dc3ff09a820b7dc61d31ef9f.tar.gz nextcloud-server-9ad48e0fe9377189dc3ff09a820b7dc61d31ef9f.zip |
Also add a note that clob does not work in the compare array
Conflicts:
lib/private/appframework/db/db.php
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/db/adapter.php | 1 | ||||
-rw-r--r-- | lib/private/db/adaptersqlite.php | 1 | ||||
-rw-r--r-- | lib/private/db/connection.php | 1 | ||||
-rw-r--r-- | lib/public/idbconnection.php | 1 |
4 files changed, 4 insertions, 0 deletions
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 ed71738a316..0da3c844f03 100644 --- a/lib/private/db/connection.php +++ b/lib/private/db/connection.php @@ -161,6 +161,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 0671cb4081d..7027f52b14c 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 */ |