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

Commit e7bf0570 by Joel Trost Committed by Matt Broadstone

Outputs based on field instead of key for insert

1 parent a3f7d94b
Showing with 1 additions and 2 deletions
......@@ -229,7 +229,6 @@ module.exports = {
_sequelize = seq;
},
quoteIdentifier: function(val){
//console.log(val);
return quoteIdentifier(val);
},
quoteIdentifiers: function(val, force){
......@@ -362,7 +361,7 @@ module.exports = {
var selFields = [];
var insertKey = false;
for (var key in modelAttributeMap) {
selFields.push('INSERTED.' + quoteIdentifier(key));
selFields.push('INSERTED.' + quoteIdentifier(modelAttributeMap[key].field));
if(modelAttributeMap[key].autoIncrement
&& (valueHash[key] === 'DEFAULT'
|| valueHash[key] === null)){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!