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 truncated oracle fetch result #4581
Conversation
ff41757
to
dda2abd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. Please see inline comments.
Since it's a non-breaking improvement, it could target 3.1.x
instead of 4.0.x
.
e842bea
to
09fd47f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. @amenning please remove the cache file and squash commits.
The error handler screens for oracle warnings from php oci8 driver and converts them to a truncated query result exception. This also adds a test that demonstrates the issue where a result set larger than the oci8 default prefetch value is queried, but a truncated row set is returned due to the dataset being invalidated during the fetch sequenece.
759356c
to
5bd5b4b
Compare
I removed that file from the commit and squashed them into one commit. All checks passed. |
Thanks, @amenning! |
Thank you for quick reviews and excellent guidance. |
Summary
This adds a test that demonstrates the issue where a result set
larger than the oci8 default prefetch value is queried, but a truncated
row set is returned due to the dataset being invalidated during the
fetch sequence. No php exception is thrown.