|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-24 19:09 UTC] kalle@php.net
[2009-03-24 20:05 UTC] dimas at webimpact dot com
[2009-03-25 10:06 UTC] kalle@php.net
[2009-03-25 14:02 UTC] dimas at webimpact dot com
[2009-04-30 10:51 UTC] jani@php.net
[2009-05-08 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 19:00:01 2025 UTC |
Description: ------------ Good day, we are using PDO and got into the funny problem, The code below shows that we are trying to simple reuse the statement but when first query with ci_id = 700000 brings not result, PDO dies on a second execute. We see only blank page, if first query brings some results everything is fine. Can u please help. Thank you. Reproduce code: --------------- $oDbConn = new PDO("dblib:dbname=;host=:1433", "" , ""); $oDbConn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $oStatement = $oDbConn->prepare('SIMPLE SELECT QUERY WHERE ci_id = :ci_id'); $oStatement->bindParam(':ci_id', $val, PDO::PARAM_INT); $val = 700000; $oStatement->execute(); $val = 1000; $oStatement->execute();