New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SqlserverSchema return colum length double the actual size #11295
Comments
This is likely caused by SQLServer telling us that the field is double the length it actually is because SQLServer uses ucs2/utf16 internally. There might not be a way around this. |
Can't we just divide the value by 2? |
We could. We'd have to make sure the columns where |
Closing as there is a pull request open now. |
This is a (multiple allowed):
bug
enhancement
feature-discussion (RFC)
CakePHP Version: 3.5.3.
Platform and Target: Windows, MS SQL Server 2012.
What you did
I've created a fixture with a string field having a limit of 50 characters.
What happened
During unit-testing, the table's object reported, that the "title" field has a length of 100 characters.
What you expected to happen
The length of the field to be reported as 50 characters.
AppVeyor's build log
Affects cakephp/bake/pull/335
The text was updated successfully, but these errors were encountered: