aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/db/DatabaseTestHelper.php
Commit message (Collapse)AuthorAgeFilesLines
...
* rdbms: make affectedRows() work more consistentlyAaron Schulz2018-01-301-1/+1
| | | | | | | | | * Update replace()/upsert() to combine the affected row count for the non-native case * Also make replace() atomic in the non-native case, similar to how upsert() already works Change-Id: I6c9bcba54eca6bcf4a93a9b230aaedf7f36aa877
* Improve some parameter docsUmherirrender2017-09-101-0/+1
| | | | | | Add missing @return and @param to function docs and fixed some @param Change-Id: I810727961057cfdcc274428b239af5975c57468d
* Add Database::unionConditionPermutations()Brad Jorsch2017-06-161-0/+13
| | | | | | | | Constructs a query for the union of permutations of a set of fields, for use in situations where the database otherwise makes poor plans due to inability to use indexes effectively (e.g. T149077 and T168010). Change-Id: I20980dcada664486c09198b8c45896620bd83e81
* Move DatabaseDomain to Rdbms namespaceAaron Schulz2017-02-071-0/+1
| | | | Change-Id: Ifb06e792a36b5123ec3596933d0d394711ee5d08
* Move ChronologyProtector/TransactionProfiler to Rdbms namespaceAaron Schulz2017-01-261-0/+2
| | | | Change-Id: I37a655bd8bd267c9bc32028b55925b2dce527d33
* Replace DatabaseBase:: with Database:: and update type hintsAaron Schulz2016-09-271-4/+4
| | | | Change-Id: I3919b04eb2de4fa0bf8a02239fb5bbf17d347511
* Merge "Set more fields in fake DB subclasses to avoid errors"jenkins-bot2016-09-211-0/+3
|\
| * Set more fields in fake DB subclasses to avoid errorsAaron Schulz2016-09-211-0/+3
| | | | | | | | Change-Id: I6b24422e830a8f82ba24383b3425808cb2a28b15
* | Merge "Set the DatabaseDomain in some tests classes for sanity"jenkins-bot2016-09-211-0/+1
|\|
| * Set the DatabaseDomain in some tests classes for sanityAaron Schulz2016-09-211-0/+1
| | | | | | | | Change-Id: I6531dc6cf89fbe7e5656354bcd4a27369f573752
* | Check Database::mSessionTempTables in Database::tableExists()Aaron Schulz2016-09-211-0/+5
|/ | | | | | | | Also make the temp table tracking catch plain "DROP TABLE" in addition to the stricter "DROP TEMPORARY TABLE" clause. Bug: T146300 Change-Id: Ia8306ec25e63adcdcf0dcc8f6a700dd01afdc948
* Avoid MWDebug usage in DatabaseBaseAaron Schulz2016-09-171-0/+2
| | | | | | | | | | | This class is in /libs and cannot depend on all of MediaWiki. Replace the call with a simple debug() call instead. Also, make the legacy logger route/format errors from the two new DB log types (DBConnection, DBQuery) to the old wfLogDBError locations, including MWDebug::debugMsg(). Change-Id: I64895d3f5b9a000d8186ab6a6ffb4b76a7e9ff40
* Use ESTIMATE_DB_APPLY for total transaction time estimateAaron Schulz2016-09-111-0/+5
| | | | | | | Individual write queries already do this, but the COMMIT step still used the old accounting. Change-Id: I416a524d6652f933cbc49033b49745db732c8b92
* Make insertSelect() do two separate queries in non-CLI modeAaron Schulz2016-08-311-2/+16
| | | | | | | | | | | This avoids slave lag and makes query time account easier. It also avoids table-level autoinc locking and slave drift with statement-based replication in some setups. Also refactored the use of $wgCommandLine mode in DatabaseBase slightly, so that it can be injected. Change-Id: I2dba6024ecf32c9ee24a3080cce3b02568c1458b
* database: Clean up profiling code in DatabaseBaseAaron Schulz2016-08-291-0/+3
| | | | | | This cuts down on conditionals and ScopedCallback use. Change-Id: Ie478c613b062e45120cdd626f9fb9de09594c638
* Convert all array() syntax to []Kunal Mehta2016-02-171-4/+4
| | | | | | | | | | Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
* Fix calls to DatabaseBase static functionswithoutaname2014-08-171-1/+1
| | | | | | Previously they were calling Database:: which is a nonexistent class. Change-Id: I73b2ed4722c9108b6a00c8c0cabbda9564378b4b
* Avoid fatal error if doing a DB query after close()Aaron Schulz2014-04-301-0/+4
| | | | Change-Id: I606a3ec5a45136abf396f86f5a65db209128d5c9
* Made DatabaseBase::getSoftwareLink() dynamic.Aaron Schulz2013-05-141-1/+1
| | | | | | | * All callers are calling it this way and it breaks hhvm when declared statically and called dynamically. Change-Id: I894e615fd828615384aa8457a16a759c8aa416ef
* Update code formattingSiebrand Mazeland2013-04-261-0/+2
| | | | Change-Id: I16a9b42651f1cfb1a70dffbb67b7b83dfeb90d03
* Add non DBMS depending SQL tests for DatabaseBaseumherirrender2013-04-161-0/+164
Created a DatabaseTestHelper class, which extends DatabaseBase and implements STUBs for the interface methods and abstract methods Change-Id: I9965b3604e78b2722077a35a7b4ce62a5bcb370e