Skip to content

Commit d919c7f

Browse files
committed
Fix cursor regression
1 parent f7e731e commit d919c7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function Connection(options = {}) {
6262
})
6363

6464
function onsuspended(x, done) {
65-
new Promise(r => r(backend.query.cursor(
65+
new Promise(r => r(x.length && backend.query.cursor(
6666
backend.query.cursor.rows === 1 ? x[0] : x
6767
))).then(x => {
6868
x === END || done

0 commit comments

Comments
 (0)