Skip to content

fix: MSSQL varchar/varbinary MAX size and Column attribute name#165

Merged
usernane merged 1 commit into
devfrom
fix/163-159-mssql-max-size-and-column-name
Jun 8, 2026
Merged

fix: MSSQL varchar/varbinary MAX size and Column attribute name#165
usernane merged 1 commit into
devfrom
fix/163-159-mssql-max-size-and-column-name

Conversation

@usernane

@usernane usernane commented Jun 8, 2026

Copy link
Copy Markdown
Member

Summary

Fix two confirmed bugs: MSSQL MAX column size and Column attribute name being ignored.

Motivation

Changes

How to Test / Verify

php vendor/bin/phpunit tests/WebFiori/Tests/Database/BugVerification/BugVerificationTest.php

Full suite passes (882 tests).

Breaking Changes and Migration Steps

None. Schemas without explicit name in #[Column] continue using propertyToKey().

Checklist

  • I reviewed my own diff before requesting review
  • My commits follow Conventional Commits
  • The title of the pull request follows Conventional Commits
  • I added/updated tests (or explained why not)
  • I updated docs (if needed)
  • I ran lint/cs-fixer (if applicable)
  • I considered backward compatibility
  • I considered security

Related issues

Closes #163
Closes #159

…eter

- Fix #163: Accept size -1 in MSSQLColumn::setSize() for MAX-capable
  types (varchar, nvarchar, varbinary) and output 'max' in generated SQL
- Fix #159: Use explicit 'name' from #[Column] attribute for property-level
  columns instead of always deriving from propertyToKey()

Closes #163
Closes #159
@usernane usernane merged commit ea91cb7 into dev Jun 8, 2026
2 checks passed
@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

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