Skip to content
Snippets Groups Projects
Commit 2893de73 authored by Cristian Partica's avatar Cristian Partica
Browse files

MAGETWO-58924: SQL error wait timeout error when saving categories

- fix static issues
parent 79a92845
Branches
No related merge requests found
...@@ -17,7 +17,7 @@ use Magento\Framework\DB\Select; ...@@ -17,7 +17,7 @@ use Magento\Framework\DB\Select;
class TemporaryTableService class TemporaryTableService
{ {
const INDEX_METHOD_HASH = 'HASH'; const INDEX_METHOD_HASH = 'HASH';
const INDEX_METHOD_INNODB = 'INNODB'; const DB_ENGINE_INNODB = 'INNODB';
/** /**
* @var string[] * @var string[]
...@@ -84,7 +84,7 @@ class TemporaryTableService ...@@ -84,7 +84,7 @@ class TemporaryTableService
AdapterInterface $adapter, AdapterInterface $adapter,
array $indexes = [], array $indexes = [],
$indexMethod = self::INDEX_METHOD_HASH, $indexMethod = self::INDEX_METHOD_HASH,
$dbEngine = self::INDEX_METHOD_INNODB $dbEngine = self::DB_ENGINE_INNODB
) { ) {
if (!in_array($indexMethod, $this->allowedIndexMethods)) { if (!in_array($indexMethod, $this->allowedIndexMethods)) {
throw new \InvalidArgumentException( throw new \InvalidArgumentException(
......
...@@ -75,7 +75,7 @@ class TemporaryTableServiceTest extends \PHPUnit_Framework_TestCase ...@@ -75,7 +75,7 @@ class TemporaryTableServiceTest extends \PHPUnit_Framework_TestCase
$this->adapterMock, $this->adapterMock,
$indexes, $indexes,
TemporaryTableService::INDEX_METHOD_HASH . "Other", TemporaryTableService::INDEX_METHOD_HASH . "Other",
TemporaryTableService::INDEX_METHOD_INNODB . "Other" TemporaryTableService::DB_ENGINE_INNODB . "Other"
) )
); );
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment