Skip to content

Commit

Permalink
Revert.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Aug 17, 2020
1 parent 565e49b commit 8395a4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/Table/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ public function validateUniqueExt($value, array $options, array $context = []) {
*
* Only for MySQL.
*
* @deprecated Seems broken since 4.1.2+.
* @deprecated Too (My)SQL specific.
*
* @return int|false next auto increment value or False on failure
*/
public function getNextAutoIncrement() {
$query = "SHOW TABLE STATUS WHERE name = '" . $this->getAlias() . "'";
$query = "SHOW TABLE STATUS WHERE name = '" . $this->getTable() . "'";
$statement = $this->_connection->execute($query);
$result = $statement->fetch();
if (!isset($result[10])) {
Expand Down

0 comments on commit 8395a4c

Please sign in to comment.