You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to fetch results from a dynamic query returning potentially multiple result sets.
Because of dynamic nature of the request I do not know how many result sets will be returned from server.
To handle this I used the code: do { if ($result->columnCount()) { $data = $result->fetchAll(PDO::FETCH_NUM); } else { $data = []; } } while ($result->nextRowset());
After upgrading to the latest pdo_sqlsrv version I get the error mentioned in the issue title.
I've checked this out: #507 but I do not want to suppress all errors with PDO::ERRMODE_SILENT
Is any possibility to determine next rowset is present before calling nextRowset()? Or how can I handle the issue other way?
Thanks.
The text was updated successfully, but these errors were encountered:
I need to fetch results from a dynamic query returning potentially multiple result sets.
Because of dynamic nature of the request I do not know how many result sets will be returned from server.
To handle this I used the code:
do { if ($result->columnCount()) { $data = $result->fetchAll(PDO::FETCH_NUM); } else { $data = []; } } while ($result->nextRowset());
After upgrading to the latest pdo_sqlsrv version I get the error mentioned in the issue title.
I've checked this out: #507 but I do not want to suppress all errors with PDO::ERRMODE_SILENT
Is any possibility to determine next rowset is present before calling nextRowset()? Or how can I handle the issue other way?
Thanks.
The text was updated successfully, but these errors were encountered: