Skip to content

fix: throw Postgre query errors with warnings disabled - #10573

Merged
paulbalandan merged 3 commits into
codeigniter4:developfrom
wakqasahmed:feature/issue-6913-postgre-exception
Sep 27, 2026
Merged

paulbalandan merged 3 commits into
codeigniter4:developfrom
wakqasahmed:feature/issue-6913-postgre-exception

Conversation

@wakqasahmed

@wakqasahmed wakqasahmed commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Throws DatabaseException when Postgre's pg_query() returns false with DBDebug enabled, even if PHP warnings are disabled — previously the failure was silently swallowed in that combination. Adds a Postgre regression test for the suppressed-warning query failure. Partially addresses #6913; OCI8 remains open, this PR does not close the issue.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@wakqasahmed wakqasahmed changed the title Fix Postgre query errors when warnings are disabled (#6913) fix: throw Postgre query errors with warnings disabled (#6913) Sep 19, 2026
@carson-codeigniter4 carson-codeigniter4 Bot added the bug Verified issues on the current code behavior or pull requests that will fix them label Sep 19, 2026
wakqasahmed

This comment was marked as outdated.

@paulbalandan

Copy link
Copy Markdown
Member

Hi @wakqasahmed ,

Thanks for your PR. Few reminders on your PRs:

  1. Use the pull request template when creating a PR.
  2. Do not post any review comments from your coding agent here. It should be resolved internally with yourself, and posting it just adds noise.

@michalsn michalsn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a changelog entry.

@wakqasahmed
wakqasahmed force-pushed the feature/issue-6913-postgre-exception branch from 6d7297a to 2382e28 Compare September 25, 2026 20:34
@wakqasahmed

Copy link
Copy Markdown
Contributor Author

Added the changelog entry to v4.7.5 and rebased on the latest develop. Thanks!

@paulbalandan noted on both points, sorry for the noise. I'll stick to the template and keep the review stuff out of the PR from now on.

@paulbalandan paulbalandan changed the title fix: throw Postgre query errors with warnings disabled (#6913) fix: throw Postgre query errors with warnings disabled Sep 27, 2026
@paulbalandan
paulbalandan merged commit fba4362 into codeigniter4:develop Sep 27, 2026
62 checks passed
@paulbalandan

Copy link
Copy Markdown
Member

Thanks, @wakqasahmed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Verified issues on the current code behavior or pull requests that will fix them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants