Skip to content

fix: Stop DB drivers from sharing escape characters on PHP 8.1+. - #79

Merged
pocketarc merged 1 commit into
developfrom
fix/db-escape-char-cache
Nov 1, 2026
Merged

pocketarc merged 1 commit into
developfrom
fix/db-escape-char-cache

Conversation

@pocketarc

@pocketarc pocketarc commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Apps that use more than one database driver in the same request, such as MySQL alongside PostgreSQL or SQL Server, now get the right identifier quoting for each connection. Before, whichever driver escaped an identifier first decided the quote character for all of them, so queries on the other connection failed with syntax errors.

Fixes #59. Fixes #64.

@pocketarc
pocketarc merged commit c762fe6 into develop Nov 1, 2026
186 checks passed
@pocketarc
pocketarc deleted the fix/db-escape-char-cache branch November 1, 2026 21:39
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.

escape_identifiers() uses wrong quote character when mixing DB drivers (PHP >= 8.1) PostgreSQL query error on PHP 8.2

1 participant