|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-09 11:44 UTC] gustav at cst dot co dot za
[2006-04-09 08:41 UTC] wez@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 07:00:02 2025 UTC |
Description: ------------ Hi, I use PDO_ODBC (linked against Win32 ODBC) to connect to MSSQL. Webserver is IIS 5. When I run a "DELETE" statement that tries to delete a nonexisting row, exec() returned FALSE instead of int(0). An existing row deletes fine. Reproduce code: --------------- <?php $dsn = 'odbc:database'; $user = 'user'; $password = 'pass'; $dbh = new PDO($dsn, $user, $password); $result = $dbh->exec("DELETE FROM radio WHERE station_id = 10"); if ($result===false) echo "FALSE"; else $result; ?> Expected result: ---------------- 0 Actual result: -------------- FALSE