<?php
use Wikimedia\Rdbms\TransactionProfiler;
+use Wikimedia\Rdbms\DatabaseDomain;
/**
* Helper for testing the methods from the Database class
*/
protected $tablesExists;
+ /**
+ * Value to return from unionSupportsOrderAndLimit()
+ */
+ protected $unionSupportsOrderAndLimit = true;
+
public function __construct( $testName, array $opts = [] ) {
$this->testName = $testName;
/**
* Returns SQL queries grouped by '; '
* Clear the list of queries that have been done so far.
+ * @return string
*/
public function getLastSqls() {
$lastSqls = implode( '; ', $this->lastSqls );
return new FakeResultWrapper( $res );
}
+
+ public function unionSupportsOrderAndLimit() {
+ return $this->unionSupportsOrderAndLimit;
+ }
+
+ public function setUnionSupportsOrderAndLimit( $v ) {
+ $this->unionSupportsOrderAndLimit = (bool)$v;
+ }
}