From 511f7993095adf04a44a15c73d17665ffcc6fd71 Mon Sep 17 00:00:00 2001 From: Abhijeet Parande Date: Mon, 24 Apr 2017 11:37:24 -0700 Subject: [PATCH] Update redshift.js --- lib/Drivers/DML/redshift.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Drivers/DML/redshift.js b/lib/Drivers/DML/redshift.js index 6b84974d..2ef26e46 100644 --- a/lib/Drivers/DML/redshift.js +++ b/lib/Drivers/DML/redshift.js @@ -24,7 +24,7 @@ Driver.prototype.insert = function (table, data, keyProperties, cb) { var i, ids = {}, prop; - if (keyNames.length == 1) { + if (keyProperties.length == 1) { this.execQuery("SELECT LASTVAL() AS id", function (err, results) { if (err) return cb(err);