doctrine/dbal
NVARCHAR(MAX) length for portableTableColumnDefiniton should not be divided
开放
#6,038 创建于 2023年5月15日
BugHelp wantedSQL ServerSchema IntrospectionSchema Management
仓库指标
- 星标
- (9,693 个星标)
- PR 合并指标
- (平均合并 12小时 52分钟) (30 天内合并 46 个 PR)
描述
Bug Report
When introspecting a schema from an SqlServer database a nvarchar(max) a TypeError is raised. Apparently this happens because the length of an nvarchar is divided by two in the SQLServerSchemaManager::getPortableTableColunmnDefinition. As the MAX length is read as -1 this leads to a float length (-0.5).
This can be simply reproduced by introspecting a SqlServer database schema containing a nvarchar(max) column.