不要怂,就是干,撸起袖子干!

Commit a8ca68f9 by Sascha Depold

enforce omitNull to be false

1 parent 77dbca50
Showing with 2 additions and 0 deletions
......@@ -336,6 +336,8 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
smth: { type: Sequelize.STRING, allowNull: false }
})
this.sequelize.options.omitNull = false
UserNull.sync({ force: true }).success(function() {
UserNull.create({ username: 'foo2', smth: null }).error(function(err) {
expect(err).to.exist
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!