Commit 24ebf71
committed
[OPENJPA-2940] Add transformedBitIsBoolean=true to MySQL JDBC test URL
MySQL stores BOOLEAN columns as TINYINT(1). By default, MySQL Connector/J
reports them as Types.BIT, which OpenJPA's MappingInfo.mergeColumn
coerces as "numeric" and silently upgrades to VARCHAR — defeating
SchemaManager.validate() detection of a genuine VARCHAR->BOOLEAN schema
drift (TestJDBCSchemaManager.testValidate).
Setting transformedBitIsBoolean=true makes Connector/J report TINYINT(1)
as Types.BOOLEAN, which isNumericType() excludes. This matches MariaDB
Connector/J's default behavior where the same test already passes.1 parent 6613f8d commit 24ebf71
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
654 | | - | |
| 654 | + | |
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| |||
0 commit comments