Edit report at https://bugs.php.net/bug.php?id=64664&edit=1
ID: 64664 Updated by: a...@php.net Reported by: vtap at clubinternet dot fr Summary: Reinitialize fetchAll -Status: Open +Status: Not a bug Type: Feature/Change Request Package: PDO related Operating System: Windows 7 PHP Version: 5.4.14 Block user comment: N Private report: N New Comment: This isn't a support forum, but there's no way to rewind without executing the statement again. Previous Comments: ------------------------------------------------------------------------ [2013-04-18 06:50:47] vtap at clubinternet dot fr Description: ------------ $sql = "SELECT f1, f2 FROM test;"; $res = $pdo->query($sql); $f1= $res->fetchAll(PDO::FETCH_COLUMN,0); $f2= $res->fetchAll(PDO::FETCH_COLUMN,1); $f1 is OK but $f2 is an empty array. Is there a way to reinitialize the cursor ? I know I can rerun the query but wanted to know if it could be avoided. Thanks. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64664&edit=1