--TEST-- Bug #73959 (lastInsertId fails to throw an exception) --EXTENSIONS-- pdo_pgsql --SKIPIF-- --FILE-- setAttribute(PDO::ATTR_PERSISTENT, false); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->setAttribute(PDO::PGSQL_ATTR_DISABLE_PREPARES, true); try { $db->lastInsertId('nonexistent_seq'); echo "Error: No exception thrown"; } catch (PDOException $e) { echo "Success: Exception thrown"; } ?> --EXPECT-- Success: Exception thrown