浏览代码

Fix method usage.

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

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

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