Skip to content

fix(Database): escape table, column, and sequence names in Postgre Connection::insertID() - #10735

Open
gr8man wants to merge 1 commit into
codeigniter4:developfrom
gr8man:fix/postgre-connection-insert-id-escape
Open

gr8man wants to merge 1 commit into
codeigniter4:developfrom
gr8man:fix/postgre-connection-insert-id-escape

Conversation

@gr8man

@gr8man gr8man commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Description
Postgre\Connection::insertID() interpolated table, column, and sequence names directly in queries without escaping, which could cause syntax errors or unintended queries when names contained quotes or special characters. This change escapes them using $this->escape().

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

@carson-codeigniter4 carson-codeigniter4 Bot added needs template Opened issues not following the bug form template bug Verified issues on the current code behavior or pull requests that will fix them labels Nov 5, 2026
@carson-codeigniter4

This comment has been minimized.

@carson-codeigniter4 carson-codeigniter4 Bot removed the needs template Opened issues not following the bug form template label Nov 5, 2026

This branch has not been deployed

No deployments
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.

1 participant