|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2017-01-20 15:02 UTC] andrew dot nester dot dev at gmail dot com
[2017-01-20 20:12 UTC] krakjoe@php.net
[2017-01-20 20:12 UTC] krakjoe@php.net
-Status: Open
+Status: Closed
[2017-01-21 09:09 UTC] david dot hedberg at zavann dot se
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
Description: ------------ Running PDO::lastInsertId() using a bad sequence name (not updated or nonexistent) no longer throws an exception after upgrading. PostgreSQL server version is 9.5.5. It works in 7.0.8-0ubuntu0.16.04.3, but fails in both 7.0.13-0ubuntu0.16.04.1 and 7.0.14-2+deb.sury.org~xenial+1. Test script: --------------- $pdo = new PDO( 'pgsql:service=...', null, null, array( PDO::ATTR_PERSISTENT => false, PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::PGSQL_ATTR_DISABLE_PREPARES => true ) ); try { $pdo->lastInsertId('nonexistent_seq'); echo "Error: No exception thrown"; } catch (PDOException $e) { echo "Success: Exception thrown"; } Expected result: ---------------- Success: Exception thrown Actual result: -------------- Error: No exception thrown