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

Commit 8d8b491a by Sascha Depold

if value is not defined return NULL for SQL queries

1 parent 8319ed59
Showing with 3 additions and 0 deletions
......@@ -41,6 +41,9 @@ SequelizeHelper = {
},
transformValueByDataType: function(value, dataType) {
if(typeof value == 'undefined')
return "NULL"
if(dataType.indexOf(Sequelize.INTEGER) > -1)
return value
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!