Browse Source

Fix method usage.

mscherer 5 years ago
parent
commit
ea411a14ff
1 changed files with 1 additions and 1 deletions
  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])) {