From: Aaron Schulz Date: Wed, 1 Aug 2018 17:34:17 +0000 (-0700) Subject: Clarify IDatabase docs for upsert() and replace() X-Git-Tag: 1.34.0-rc.0~4560^2 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=ff7edd10389e8f52c89207b25f612a0dc6b3d300;p=lhc%2Fweb%2Fwiklou.git Clarify IDatabase docs for upsert() and replace() Change-Id: I0f23a77ba0837684c2151c33b9e93046dbc73b48 --- diff --git a/includes/libs/rdbms/database/IDatabase.php b/includes/libs/rdbms/database/IDatabase.php index 61788e1f48..7da259d9f0 100644 --- a/includes/libs/rdbms/database/IDatabase.php +++ b/includes/libs/rdbms/database/IDatabase.php @@ -1208,10 +1208,10 @@ interface IDatabase { * errors which wouldn't have occurred in MySQL. * * @param string $table The table to replace the row(s) in. - * @param array $uniqueIndexes Is an array of indexes. Each element may be either - * a field name or an array of field names + * @param array $uniqueIndexes Either a list of fields that define a unique index or + * an array of such lists if there are multiple unique indexes defined in the schema * @param array $rows Can be either a single row to insert, or multiple rows, - * in the same format as for IDatabase::insert() + * in the same format as for IDatabase::insert() * @param string $fname Calling function name (use __METHOD__) for logs/profiling * @throws DBError */ @@ -1243,7 +1243,8 @@ interface IDatabase { * * @param string $table Table name. This will be passed through Database::tableName(). * @param array $rows A single row or list of rows to insert - * @param array $uniqueIndexes List of single field names or field name tuples + * @param array $uniqueIndexes Either a list of fields that define a unique index or + * an array of such lists if there are multiple unique indexes defined in the schema * @param array $set An array of values to SET. For each array element, the * key gives the field name, and the value gives the data to set that * field to. The data will be quoted by IDatabase::addQuotes().