Skip to content

Commit 2893de7

Browse files
committed
MAGETWO-58924: SQL error wait timeout error when saving categories
- fix static issues
1 parent 79a9284 commit 2893de7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/internal/Magento/Framework/DB/TemporaryTableService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class TemporaryTableService
1818
{
1919
const INDEX_METHOD_HASH = 'HASH';
20-
const INDEX_METHOD_INNODB = 'INNODB';
20+
const DB_ENGINE_INNODB = 'INNODB';
2121

2222
/**
2323
* @var string[]
@@ -84,7 +84,7 @@ public function createFromSelect(
8484
AdapterInterface $adapter,
8585
array $indexes = [],
8686
$indexMethod = self::INDEX_METHOD_HASH,
87-
$dbEngine = self::INDEX_METHOD_INNODB
87+
$dbEngine = self::DB_ENGINE_INNODB
8888
) {
8989
if (!in_array($indexMethod, $this->allowedIndexMethods)) {
9090
throw new \InvalidArgumentException(

lib/internal/Magento/Framework/DB/Test/Unit/TemporaryTableServiceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testCreateFromSelectWithException()
7575
$this->adapterMock,
7676
$indexes,
7777
TemporaryTableService::INDEX_METHOD_HASH . "Other",
78-
TemporaryTableService::INDEX_METHOD_INNODB . "Other"
78+
TemporaryTableService::DB_ENGINE_INNODB . "Other"
7979
)
8080
);
8181
}

0 commit comments

Comments
 (0)