Skip to content

Commit 5da919b

Browse files
committed
Fix pg-cursor exception
fix #114
1 parent 0f7db3a commit 5da919b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgresql.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ module.exports = function (RED) {
253253
const msg2 = Object.assign({}, msg, {
254254
payload: (node.rowsPerMsg || 1) > 1 ? rows : rows[0],
255255
pgsql: {
256-
command: result.command,
257-
rowCount: result.rowCount,
256+
command: result ? result.command : undefined,
257+
rowCount: result ? result.rowCount : undefined,
258258
},
259259
parts: {
260260
id: partsId,

0 commit comments

Comments
 (0)