Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pdo: support setFetchMode() #255

Closed
staabm opened this issue Feb 6, 2022 · 0 comments · Fixed by #258
Closed

Pdo: support setFetchMode() #255

staabm opened this issue Feb 6, 2022 · 0 comments · Fixed by #258
Labels
enhancement New feature or request

Comments

@staabm
Copy link
Owner

staabm commented Feb 6, 2022

<?php
$stmt = $dbh->query('SELECT name, colour, calories FROM fruit');
$stmt->setFetchMode(PDO::FETCH_NUM);
foreach ($stmt as $row) {
    print $row[0] . "\t" . $row[1] . "\t" . $row[2] . "\n";
}

https://www.php.net/manual/en/pdostatement.setfetchmode.php

similar to #253

@staabm staabm self-assigned this Feb 6, 2022
@staabm staabm changed the title Pdo: support setFetchMode Pdo: support setFetchMode() Feb 6, 2022
@staabm staabm added the enhancement New feature or request label Feb 6, 2022
@staabm staabm removed their assignment Feb 6, 2022
@staabm staabm changed the title Pdo: support setFetchMode() Pdo: support setFetchMode() Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant