yesodweb / yesod-scaffold

The Yesod scaffolding, with branches for different versions.
MIT License
76 stars 39 forks source link

Enable MySQL strict mode from the scaffolding #94

Closed MaxGabriel closed 9 years ago

MaxGabriel commented 9 years ago

This PR would enable MySQL's strict mode for connections coming from the application. This causes MySQL to raise errors instead of silently truncating too-long data, among other changes. This PR would have prevented https://github.com/yesodweb/persistent/issues/122.

Current wiki page about this: https://github.com/yesodweb/persistent/wiki/Database-Configuration#strict-mode

gregwebs commented 9 years ago

looks good to me