Skip to content

Commit 211c668

Browse files
authored
Merge pull request #167 from magento-troll/MAGETWO-55449
[Troll] MAGETWO-55449 - Cannot switch indexers to Update on Schedule mode if using table prefixes
2 parents 2db9e0f + 9a8c1fd commit 211c668

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

lib/internal/Magento/Framework/DB/Ddl/Trigger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function setTable($name)
187187
(string)new \Magento\Framework\Phrase('Trigger table name should be a string')
188188
);
189189
}
190-
$this->tableName = strtolower($name);
190+
$this->tableName = $name;
191191
return $this;
192192
}
193193

lib/internal/Magento/Framework/DB/Test/Unit/Ddl/TriggerTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ public function testSetTableWithException()
8181
$this->_object->setTable($tableName);
8282
}
8383

84+
/**
85+
* Test for table name setter
86+
*/
87+
public function testSetTableName()
88+
{
89+
$names = ['PREFIX_table', 'prefix_table'];
90+
foreach ($names as $name) {
91+
$this->_object->setTable($name);
92+
$this->assertEquals($name, $this->_object->getTable());
93+
}
94+
}
95+
8496
/**
8597
* Test case for getName()
8698
*

0 commit comments

Comments
 (0)