wiki.techinc.nl/includes/libs/rdbms
Tim Starling 191767b0c8 rdbms: Followup to upsert/replace parameter validation
Follows-up acd3a53799.

* Factor out duplicated code between upsert() and replace() into
  normalizeUpsertParams()
* Passing more than one key to normalizeUpsertKeys() was unconditionally
  an error, so simplify it by removing the loop and inspecting the count
  and first element.
* Rename $keyColumnCountNull to $numNulls
* Note that the complex code in assertValidUpsertSetArray() exists for
  the benefit of PostgreSQL.
* Rename makeConditionCollidesUponKey() to makeKeyCollisionCondition().
* Delete makeConditionCollidesUponKeys() since it was only ever called
  with a single key, so the callers can instead call
  makeKeyCollisionCondition().
* Rename $disjunctions to $orConds for clarity.

Change-Id: Ib40057ea1d9c69d5b7f061b6061c595dd3668454
2021-08-24 00:34:12 +00:00
..
connectionmanager More master -> primary documentation and internal var renaming 2021-07-15 11:20:20 +01:00
database rdbms: Followup to upsert/replace parameter validation 2021-08-24 00:34:12 +00:00
dbal Remove unneeded explicit true/false inside conditions 2021-08-17 21:52:34 +02:00
encasing Merge "Replace "@stable for subclassing" with "@stable to extend"" 2020-07-13 09:31:38 +00:00
exception Merge "Replace "@stable for subclassing" with "@stable to extend"" 2020-07-13 09:31:38 +00:00
field Add some missing __METHOD__ parameters to database calls 2021-06-07 19:28:51 +00:00
lbfactory Merge "rdbms: Log the transaction write query duration" 2021-08-03 18:45:01 +00:00
loadbalancer Merge "rdbms: Log the transaction write query duration" 2021-08-03 18:45:01 +00:00
loadmonitor More master -> primary documentation and internal var renaming 2021-07-15 11:20:20 +01:00
querybuilder Make SelectQueryBuilder @stable to extend. 2021-06-28 09:17:32 -07:00
ChronologyProtector.php Rename DB primary position interfaces to DBPrimaryPos and MySQLPrimaryPos 2021-08-02 17:59:39 +00:00
defines.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
TransactionProfiler.php More master -> primary documentation and internal var renaming 2021-07-15 11:20:20 +01:00