Skip to content

Commit 3389f98

Browse files
committed
plucking
1 parent cd0d110 commit 3389f98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ class Statement {
390390
const result = [];
391391
for (const row of this.iterate(...bindParameters)) {
392392
if (this.pluckMode) {
393-
result.push(Object.keys(row)[0]);
393+
result.push(row[Object.keys(row)[0]]);
394394
} else {
395395
result.push(row);
396396
}

promise.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ class Statement {
392392
const it = await this.iterate(...bindParameters);
393393
for (const row of it) {
394394
if (this.pluckMode) {
395-
result.push(Object.keys(row)[0]);
395+
result.push(row[Object.keys(row)[0]]);
396396
} else {
397397
result.push(row);
398398
}

0 commit comments

Comments
 (0)