gnormal / gnorm

A database-first code generator for any language
https://gnorm.org
Other
487 stars 40 forks source link

MariaDB support: GENERATION_EXPRESSION is nullable #126

Open lajosbencz opened 4 years ago

lajosbencz commented 4 years ago

MariaDB was designed to be a drop-in replacement for MySQL, so the codebase should be able to support it. The only discrepancy I've encountered is that INFORMATION_SCHEMA.COLUMNS.GENERATION_EXPRESSION is NULL by default in MariaDB.

This PR fixes #114, but haven't checked properly if it breaks anything elsewhere.

natefinch commented 4 years ago

Interesting... thanks for the PR. I'll poke at it some to make sure it won't break mysql.

folago commented 4 years ago

Any update on this one? I am interested in the preview to keep track of schema changes, but we have generated columns in our DB.