Skip to content

Make parser fields readonly for SQL CLR SAFE compliance#199

Open
phuf wants to merge 1 commit into
sprache:developfrom
phuf:readonly-parser-fields
Open

Make parser fields readonly for SQL CLR SAFE compliance#199
phuf wants to merge 1 commit into
sprache:developfrom
phuf:readonly-parser-fields

Conversation

@phuf

@phuf phuf commented Jul 12, 2026

Copy link
Copy Markdown

Fixes SAFE permission set verification errors in SQL Server CLR by marking
static parser fields as readonly.

These two fields were causing CREATE ASSEMBLY failures when trying to
register assemblies with PERMISSION_SET = SAFE:

  • LineEnd
  • LineTerminator

Adding the readonly modifier prevents mutation after initialization and
satisfies SQL Server's SAFE CLR verifier requirements.

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.

1 participant