Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit c901e746
authored
Aug 09, 2012
by
sdepold
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:sdepold/sequelize
2 parents
999e21fd
06817707
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
.travis.yml
lib/dialects/postgres/query-generator.js
.travis.yml
View file @
c901e74
...
...
@@ -17,4 +17,3 @@ language: node_js
node_js
:
-
0.6
-
0.8
lib/dialects/postgres/query-generator.js
View file @
c901e74
...
...
@@ -243,6 +243,8 @@ module.exports = (function() {
options
=
options
||
{}
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
pks
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment