wiki.techinc.nl/includes/libs/rdbms/database
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
..
domain rdbms: add type sanity check to DatabaseDomain::newFromId 2020-12-02 21:55:57 +00:00
position Rename DB primary position interfaces to DBPrimaryPos and MySQLPrimaryPos 2021-08-02 17:59:39 +00:00
resultwrapper Make IResultWrapper::seek() throw an exception 2021-08-02 11:37:45 +10:00
utils rdbms: Move Profiler @ingroup docs from file to class 2020-04-20 20:05:53 +01:00
Database.php rdbms: Followup to upsert/replace parameter validation 2021-08-24 00:34:12 +00:00
DatabaseMysqlBase.php rdbms: add unique key checks to upsert() and replace() in Database 2021-08-18 19:18:40 -07:00
DatabaseMysqli.php DBMS-specific ResultWrapper subclasses 2021-07-21 06:54:26 -07:00
DatabasePostgres.php rdbms: remove unused DatabasePostgres::hasConstraint() method 2021-08-03 13:45:13 -07:00
DatabaseSqlite.php rdbms: add unique key checks to upsert() and replace() in Database 2021-08-18 19:18:40 -07:00
DBConnRef.php ILoadBalancer and IDatabase: Rename getMasterPos to getPrimaryPos 2021-08-02 18:14:41 +00:00
IDatabase.php rdbms: add unique key checks to upsert() and replace() in Database 2021-08-18 19:18:40 -07:00
IMaintainableDatabase.php DBMS-specific ResultWrapper subclasses 2021-07-21 06:54:26 -07:00
MaintainableDBConnRef.php rdbms: fix reference variables in MaintainableDBConnRef::streamStatementEnd() 2021-03-25 17:48:12 -07:00