Chat2DB Edition
Chat2DB Community
Chat2DB Version
5.3.0
Deployment
Web
Operating System
macOS
Operating System Version
12
Database and Version
MySQL
Problem Summary
MysqlColumnTypeEnum.buildDataType guards with if (columnSize == null || decimalDigits == null) return columnType — the || causes an early return for DECIMAL(10) (precision set, scale null), dropping the precision and emitting bare DECIMAL (which MySQL defaults to DECIMAL(10,0)). The size-only branch is unreachable dead code. Every sibling (Oracle/DM/DB2/Oscar) guards on columnSize == null only. Same bug class as the already-fixed Sqlite #2167.
Expected Behavior
Guard on columnSize == null only, making the size-only branch reachable.
Actual Behavior
MysqlColumnTypeEnum.java:379,394 — if (columnSize == null || decimalDigits == null) return columnType.
Impact
Limited or cosmetic impact
Workaround
N/A
Submission Checklist
Chat2DB Edition
Chat2DB Community
Chat2DB Version
5.3.0
Deployment
Web
Operating System
macOS
Operating System Version
12
Database and Version
MySQL
Problem Summary
MysqlColumnTypeEnum.buildDataType guards with if (columnSize == null || decimalDigits == null) return columnType — the || causes an early return for DECIMAL(10) (precision set, scale null), dropping the precision and emitting bare DECIMAL (which MySQL defaults to DECIMAL(10,0)). The size-only branch is unreachable dead code. Every sibling (Oracle/DM/DB2/Oscar) guards on columnSize == null only. Same bug class as the already-fixed Sqlite #2167.
Expected Behavior
Guard on columnSize == null only, making the size-only branch reachable.
Actual Behavior
MysqlColumnTypeEnum.java:379,394 — if (columnSize == null || decimalDigits == null) return columnType.
Impact
Limited or cosmetic impact
Workaround
N/A
Submission Checklist