From 8395a4c662ddcbb504467e00f6be1d95c2f40524 Mon Sep 17 00:00:00 2001 From: mscherer Date: Mon, 17 Aug 2020 15:32:32 +0200 Subject: [PATCH] Revert. --- src/Model/Table/Table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Table/Table.php b/src/Model/Table/Table.php index 56c3bac0..b90a4d04 100644 --- a/src/Model/Table/Table.php +++ b/src/Model/Table/Table.php @@ -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])) {