From 87b554ec4376301f7e1b87e1dd17894be7ec75b3 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 16 Feb 2017 06:53:37 -0800 Subject: [PATCH] Add update()/insert() comments to IDatabase Change-Id: I926554e24c06eb002de92f950725c6a3912ee06f --- includes/libs/rdbms/database/IDatabase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/libs/rdbms/database/IDatabase.php b/includes/libs/rdbms/database/IDatabase.php index 591c797bb2..ec4ce8b3c2 100644 --- a/includes/libs/rdbms/database/IDatabase.php +++ b/includes/libs/rdbms/database/IDatabase.php @@ -908,6 +908,8 @@ interface IDatabase { * @param array $values 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(). + * Values with integer keys form unquoted SET statements, which can be used for + * things like "field = field + 1" or similar computed values. * @param array $conds An array of conditions (WHERE). See * IDatabase::select() for the details of the format of condition * arrays. Use '*' to update all rows. @@ -1151,6 +1153,8 @@ interface IDatabase { * @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(). + * Values with integer keys form unquoted SET statements, which can be used for + * things like "field = field + 1" or similar computed values. * @param string $fname Calling function name (use __METHOD__) for logs/profiling * @throws Exception * @return bool -- 2.20.1