mscherer 5 年之前
父节点
当前提交
8395a4c662
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Model/Table/Table.php

+ 2 - 2
src/Model/Table/Table.php

@@ -81,12 +81,12 @@ class Table extends ShimTable {
 	 *
 	 *
 	 * Only for MySQL.
 	 * 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
 	 * @return int|false next auto increment value or False on failure
 	 */
 	 */
 	public function getNextAutoIncrement() {
 	public function getNextAutoIncrement() {
-		$query = "SHOW TABLE STATUS WHERE name = '" . $this->getAlias() . "'";
+		$query = "SHOW TABLE STATUS WHERE name = '" . $this->getTable() . "'";
 		$statement = $this->_connection->execute($query);
 		$statement = $this->_connection->execute($query);
 		$result = $statement->fetch();
 		$result = $statement->fetch();
 		if (!isset($result[10])) {
 		if (!isset($result[10])) {