From 110994bd08875b22de4bac483dc870ed340c16a7 Mon Sep 17 00:00:00 2001 From: Vitaly Tomilov Date: Fri, 6 Mar 2015 16:27:43 +0000 Subject: [PATCH] 1. fix: when calling func in or out of transaction, optional parameter qrm wasn't used; 2. updating version to 0.2.1 3. changing search keywords a little. --- index.js | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 3281f0f3..cf1ee83b 100644 --- a/index.js +++ b/index.js @@ -175,7 +175,7 @@ function dbInit(dbInst, cn, options) { dbInst.func = function (funcName, params, qrm) { var query = $createFuncQuery(funcName, params); if (qrm) { - return dbInst.query(query); + return dbInst.query(query, qrm); } else { return dbInst.one(query); } @@ -295,7 +295,7 @@ function dbInit(dbInst, cn, options) { tx.func = function (funcName, params, qrm) { var query = $createFuncQuery(funcName, params); if (qrm) { - return tx.query(query); + return tx.query(query, qrm); } else { return tx.one(query); } diff --git a/package.json b/package.json index 6b7cdc98..7cc5f406 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pg-promise", - "version": "0.2.0", + "version": "0.2.1", "description": "PG + Promise made easy, with transactions support.", "main": "index.js", "scripts": { @@ -18,7 +18,7 @@ "pg", "promise", "transaction", - "postgresql" + "postgres" ], "author": { "name": "Vitaly Tomilov",