Skip to content

Commit

Permalink
获取最后一个插入id函数正名
Browse files Browse the repository at this point in the history
  • Loading branch information
luohancai committed Nov 30, 2018
1 parent 3678b6e commit 047ced6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function exec(string $queryName, $params = []) {
return $stmt->rowCount();
}

public function getLastID() {
public function lastInsertId() {
$pdo = self::$pdo;
return $pdo->lastInsertId();
}
Expand Down

0 comments on commit 047ced6

Please sign in to comment.