|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-29 18:36 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 11:00:02 2025 UTC |
Description: ------------ PDO::exec under postgresql driver returns 1 even when there are no rows affected Reproduce code: --------------- Tehre are no rows in table with index==20 <?php $db_connection = new PDO("pgsql:host=localhost port=5432 dbname=test", "test", "test", array(PDO::ATTR_PERSISTENT => true)); print var_dump($db_connection->exec("DELETE FROM test WHERE index=20")); ?> Expected result: ---------------- int(0) Actual result: -------------- int(1)