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

Commit c901e746 by sdepold

Merge branch 'master' of github.com:sdepold/sequelize

2 parents 999e21fd 06817707
...@@ -17,4 +17,3 @@ language: node_js ...@@ -17,4 +17,3 @@ language: node_js
node_js: node_js:
- 0.6 - 0.6
- 0.8 - 0.8
...@@ -243,6 +243,8 @@ module.exports = (function() { ...@@ -243,6 +243,8 @@ module.exports = (function() {
options = options || {} options = options || {}
options.limit = options.limit || 1 options.limit = options.limit || 1
primaryKeys[tableName] = primaryKeys[tableName] || [];
var query = "DELETE FROM <%= table %> WHERE <%= primaryKeys %> IN (SELECT <%= primaryKeysSelection %> FROM <%= table %> WHERE <%= where %> LIMIT <%= limit %>)" var query = "DELETE FROM <%= table %> WHERE <%= primaryKeys %> IN (SELECT <%= primaryKeysSelection %> FROM <%= table %> WHERE <%= where %> LIMIT <%= limit %>)"
var pks; var pks;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!