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

Commit e03956a0 by Peter Braun

Fixed two syntax errors in postgres QueryGenerator (removed 2 unneeded commas).

1 parent 9ff786f0
Showing with 2 additions and 2 deletions
...@@ -62,7 +62,7 @@ module.exports = (function() { ...@@ -62,7 +62,7 @@ module.exports = (function() {
var values = { var values = {
table: QueryGenerator.addQuotes(tableName), table: QueryGenerator.addQuotes(tableName),
attributes: attrStr.join(", "), attributes: attrStr.join(", ")
} }
var pks = primaryKeys[tableName].map(function(pk){ var pks = primaryKeys[tableName].map(function(pk){
...@@ -192,7 +192,7 @@ module.exports = (function() { ...@@ -192,7 +192,7 @@ module.exports = (function() {
for (var attributeName in attributes) { for (var attributeName in attributes) {
attrString.push(Utils._.template('<%= before %> TO <%= after %>')({ attrString.push(Utils._.template('<%= before %> TO <%= after %>')({
before: QueryGenerator.addQuotes(attrBefore), before: QueryGenerator.addQuotes(attrBefore),
after: QueryGenerator.addQuotes(attributeName), after: QueryGenerator.addQuotes(attributeName)
})) }))
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!