[sql mode] Work when not given a configuration

Closes #1374