Skip to content

Preserve string parameter size set by type handlers - #2255

Closed
alaricd wants to merge 1 commit into
DapperLib:mainfrom
pengdows:fix/issue-2141
Closed

alaricd wants to merge 1 commit into
DapperLib:mainfrom
pengdows:fix/issue-2141

Conversation

@alaricd

@alaricd alaricd commented Oct 24, 2026

Copy link
Copy Markdown

Fixes #2141.

Do not apply Dapper’s automatic string-size heuristic after a custom type handler has set the parameter. Add a fakeDb regression test that verifies the handler-owned size survives command setup.

@mgravell

Copy link
Copy Markdown
Member

The clobbering bug is real (tracked as #2141), but #2221 proposed the same fix two months earlier with tests on the existing SQLite infrastructure, so that PR gets the merge. Closing as duplicate; see #2199 for the note on the test dependency. Thanks!

@mgravell mgravell closed this Nov 20, 2026
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.

Parameter size overwritten after custom TypeHandler

2 participants