]> source.dussan.org Git - nextcloud-server.git/commitdiff
Also add a note that clob does not work in the compare array
authorJoas Schilling <nickvergessen@owncloud.com>
Mon, 16 Mar 2015 14:41:00 +0000 (15:41 +0100)
committerJoas Schilling <nickvergessen@owncloud.com>
Mon, 16 Mar 2015 14:41:00 +0000 (15:41 +0100)
lib/private/appframework/db/db.php
lib/private/db/adapter.php
lib/private/db/adaptersqlite.php
lib/private/db/connection.php
lib/public/idbconnection.php

index 0824e108f49b0ffd924aa252886a1b9ca941bf99..a9c6fc1e9c791422c8ac43de9c37d7d1e326c769 100644 (file)
@@ -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
         */
index de7b04c74db97d534d0874203136a736ec79c683..8c251c82075c698c750f09849fe143c953675463 100644 (file)
@@ -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
         */
index 31f88940f0b1bd1d3bf3b8634c8630240ec12ecf..a9106967333a3889473316ce7372484fd1367a53 100644 (file)
@@ -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
         */
index 023e265f242d5bf109e7e71f7ab72f6d6fa187a0..8748f66b369de7656063e24c8ea9c71932a2e41a 100644 (file)
@@ -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
         */
index 1117c2da9b20b5906ac3cb6e34cf426b1f262db0..38f5c7e2e59ed2e2587ca80ce619fbe9685b2a18 100644 (file)
@@ -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
         */