From 6a323aa32acbeea2c6b57b6c284593aac9430fff Mon Sep 17 00:00:00 2001 From: Stephan Kasdorf Date: Thu, 10 Sep 2020 23:02:11 +0200 Subject: [PATCH] Version 0.9.5 beta - added lastInsertID for the PDO adapter --- core/c/pdo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/c/pdo.php b/core/c/pdo.php index c7d70f6..0353649 100644 --- a/core/c/pdo.php +++ b/core/c/pdo.php @@ -163,7 +163,7 @@ final class Pdo extends Mysql implements IPdo public static function getLastInsertedID() { - // TODO: Implement getLastInsertedID() method. + return parent::getInstance( self::getSettingsSection() )->getConn()->lastInsertId(); } public static function fetchTableAsArray( $tablename = self::PLACE_TABLE_NAME, $limit = self::PLACE_QUERY_LIMIT, $order = self::PLACE_SORT_ORDER )