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

Fix default Statement fetch method's return variable #3

Merged
merged 1 commit into from Feb 22, 2014
Merged

Fix default Statement fetch method's return variable #3

merged 1 commit into from Feb 22, 2014

Conversation

ghost
Copy link

@ghost ghost commented Feb 22, 2014

When running the following:

$stmt = $dbh->query("select * from (select * from some_table) where ROWNUM <= 5");
$results = $stmt->fetchAll();

It would return an array indexed by column number only and not both. The default fetch method, however if PDO::FETCH_BOTH and should therefore return an array that is both indexed by number and by column name.
The results would return

yajra added a commit that referenced this pull request Feb 22, 2014
Fix default Statement fetch method's return variable
@yajra yajra merged commit f655ffa into yajra:master Feb 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant