SIGN IN SIGN UP
drawdb-io / drawdb UNCLAIMED

Free, simple, and intuitive online database diagram editor and SQL generator.

0 0 86 JavaScript

Fix export DECIMAL precision in MariaDB SQL generation (#980)

Fixes #955

MariaDB's parseType() only checked isSized when deciding whether to
append size/precision to column definitions. DECIMAL has isSized=false
but hasPrecision=true, so precision values like DECIMAL(8,2) were
exported as just DECIMAL.

MySQL's parseType() already checks both isSized and hasPrecision. This
aligns MariaDB's behavior with MySQL.

Co-authored-by: JasonOA888 <JasonOA888@users.noreply.github.com>
J
Jason committed
7130ae114506df3ea9724b6d9c7972044675357c
Parent: bad5c0c
Committed by GitHub <noreply@github.com> on 3/30/2026, 8:35:57 AM