Commit b65d2da
committed
fix(mysql): use column_type for data_type so tinyint(1) detects as bool
`information_schema.columns.data_type` strips length / precision —
returns `tinyint` for both `tinyint(1)` and `tinyint(4)`, collapsing
MySQL's idiomatic boolean type into a generic int. The result was
the bool-checkbox cell editor emitting `"true"` / `"false"` to a
column the parser had classified as `Int`, producing a stray
"Invalid integer" toast on every check.
`column_type` is the canonical column carrying what the user
actually typed (`tinyint(1)`, `varchar(255)`, `decimal(10,2)`,
`enum('a','b')`). Switching the introspection query to it fixes
the bool detection and also gives the Structure tab the
length / precision the user expects to see.1 parent 50d9056 commit b65d2da
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
79 | 87 | | |
80 | | - | |
| 88 | + | |
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
| |||
0 commit comments