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

Commit 6eb5078f by Sascha Depold

pass createdAt and updatedAt to the insert query

1 parent 9dbd0f67
Showing with 1 additions and 1 deletions
...@@ -34,7 +34,7 @@ describe("[" + dialect.toUpperCase() + "] Sequelize", function() { ...@@ -34,7 +34,7 @@ describe("[" + dialect.toUpperCase() + "] Sequelize", function() {
username: Helpers.Sequelize.STRING username: Helpers.Sequelize.STRING
}) })
this.insertQuery = "INSERT INTO " + this.User.tableName + " (username) VALUES ('john')" this.insertQuery = "INSERT INTO " + this.User.tableName + " (username, createdAt, updatedAt) VALUES ('john', '2012-01-01 10:10:10', '2012-01-01 10:10:10')"
this.User.sync().success(done).error(function(err) { this.User.sync().success(done).error(function(err) {
console(err) console(err)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!