Skip to content

Commit

Permalink
1. fix: when calling func in or out of transaction, optional paramete…
Browse files Browse the repository at this point in the history
…r qrm wasn't used;

2. updating version to 0.2.1
3. changing search keywords a little.
  • Loading branch information
Vitaly Tomilov committed Mar 6, 2015
1 parent 349e328 commit 110994b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -18,7 +18,7 @@
"pg",
"promise",
"transaction",
"postgresql"
"postgres"
],
"author": {
"name": "Vitaly Tomilov",
Expand Down

0 comments on commit 110994b

Please sign in to comment.