note 115918 added to pdostatement.nextrowset

From: Date: Tue, 14 Oct 2014 13:37:59 +0000
Subject: note 115918 added to pdostatement.nextrowset
Groups: php.notes 
Request: Send a blank email to php-notes+get-200643@lists.php.net to get a copy of this message
on MSSQL and 'dsn' => 'dblib:...',: If you know how many count rowset then don't use contruction of do..while. <?php do { $pdoStatement->fetchAll(\PDO::FETCH_ASSOC); } while ( $pdoStatement->nextRowset() ); ?> When I get large fetchAll(over 30) for second nextRowset. I get error - Segmentation fault. Uses step-by-step insted do..while is fix for this bug: <?php $pdoStatement->fetchAll(\PDO::FETCH_ASSOC); $pdoStatement->nextRowset(); $pdoStatement->fetchAll(\PDO::FETCH_ASSOC); ?> ---- Server IP: 72.52.91.14 Probable Submitter: 178.124.253.56 ---- Manual Page -- http://php.net/manual/en/pdostatement.nextrowset.php Edit -- https://master.php.net/note/edit/115918 Del: integrated -- https://master.php.net/note/delete/115918/integrated Del: useless -- https://master.php.net/note/delete/115918/useless Del: bad code -- https://master.php.net/note/delete/115918/bad+code Del: spam -- https://master.php.net/note/delete/115918/spam Del: non-english -- https://master.php.net/note/delete/115918/non-english Del: in docs -- https://master.php.net/note/delete/115918/in+docs Del: other reasons-- https://master.php.net/note/delete/115918 Reject -- https://master.php.net/note/reject/115918 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200643) next »