Skip to content

Skip decimal normalization for LOBs and non-UTF8#17

Open
xJuvi wants to merge 1 commit intodecMuc:mainfrom
xJuvi:fix-binary
Open

Skip decimal normalization for LOBs and non-UTF8#17
xJuvi wants to merge 1 commit intodecMuc:mainfrom
xJuvi:fix-binary

Conversation

@xJuvi
Copy link
Contributor

@xJuvi xJuvi commented Mar 2, 2026

Avoid normalizing decimal strings for PDO::PARAM_LOB values when binding parameters (both array-style params and scalar params). Add a 'ressource' => PDO::PARAM_LOB entry to the type map and defer normalization until after determining the PDO param type. Also skip normalization for strings that are not valid UTF-8 (checked with mb_check_encoding) to prevent corrupting binary/non-UTF8 data.

fixes #16

Avoid normalizing decimal strings for PDO::PARAM_LOB values when binding parameters (both array-style params and scalar params). Add a 'ressource' => PDO::PARAM_LOB entry to the type map and defer normalization until after determining the PDO param type. Also skip normalization for strings that are not valid UTF-8 (checked with mb_check_encoding) to prevent corrupting binary/non-UTF8 data.
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.

Support for binary values

1 participant