Fix compatibility with 'STRICT_TRANS_TABLES' sql-mode setting of MySQL configuration

Related issue: #43