Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dmanjunath/node-redshift
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: inkoop/node-redshift
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Feb 28, 2022

  1. Copy the full SHA
    593542d View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/query.js
4 changes: 2 additions & 2 deletions lib/query.js
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ Redshift.prototype.parameterizedQuery = function (query, parameters, options, ca
* @param {Object} options optional - raw: true returns just the data instead of the metadata from node-pg query
* @param {Function} callback called when done
*/
Redshift.prototype.rawQuery = function(query, options, callback){
Redshift.prototype.rawQuery = function(query, parameters, options, callback){
var that = this; //store original context of this because it will change inside callbacks
var args = []; //this will store function args
var config = that.config;
@@ -95,7 +95,7 @@ Redshift.prototype.rawQuery = function(query, options, callback){

if(err) throw new Error("error connecting to redshift for rawQuery");
else{
runQuery(redshiftTemp, redshiftTemp.client, q, null, options, resolve, reject, null, true);
runQuery(redshiftTemp, redshiftTemp.client, q, parameters, options, resolve, reject, null, true);
}
});
});