Skip to content

Commit 9bc2883

Browse files
committed
ACP2E-2204: Price indexing performance gradually degrades overtime
- fixed static
1 parent e380b01 commit 9bc2883

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Catalog/Test/Unit/Model/Indexer/Product/Price/CustomOptionPriceModifierTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function testModifyPrice(): void
9292
$connection->expects($this->exactly(2))->method('delete');
9393
$connection->expects($this->any())->method('select')->willReturn($select);
9494
$connection->expects($this->any())->method('fetchRow')->willReturn(['exists']);
95-
$connection->expects($this->exactly(2))->method('truncate');
95+
$connection->expects($this->exactly(2))->method('truncateTable');
9696
$this->resource->expects($this->any())->method('getConnection')->willReturn($connection);
9797
$this->resource->expects($this->any())->method('getTableName')->willReturn('table');
9898
$this->tableStrategy->expects($this->any())

lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2729,12 +2729,12 @@ public function isTableExists($tableName, $schemaName = null)
27292729
/**
27302730
* Checks if temporary table exists with given name
27312731
*
2732-
* @param $tableName
2733-
* @param $schemaName
2732+
* @param string $tableName
2733+
* @param string $schemaName
27342734
* @return bool
2735-
* @throws LocalizedException
2735+
* @throws LocalizedException|Zend_Db_Adapter_Exception
27362736
*/
2737-
private function isTemporaryTable($tableName, $schemaName): bool
2737+
private function isTemporaryTable(string $tableName, string $schemaName): bool
27382738
{
27392739
$query = "CALL sys.table_exists(" . $schemaName . ", '" . $tableName . "', @exists)";
27402740
$this->query($query);

0 commit comments

Comments
 (0)