Commit c3df7b3
committed
fix(#1438): preserve json flag for MariaDB longtext-aliased columns
MariaDB stores `json` columns as `longtext` and reports them back through
information_schema as `longtext`, so the DB-type-based detection in
_init_from_database() leaves attr["json"] False. The :json: comment marker
written at declare-time survives the aliasing, so recover the json flag
from the original declared type alongside the existing UUID recovery.
No-op on MySQL/PostgreSQL where the regex match against the DB-reported
type already sets attr["json"] = True.1 parent db42c26 commit c3df7b3
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
512 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
513 | 521 | | |
514 | 522 | | |
515 | 523 | | |
| |||
0 commit comments