Skip to content

Commit bcd9461

Browse files
committed
Use the label field instead of name field
This returns the right value when a select statement is like: SELECT foo.id AS bar; The `name` in this case is 'id', where the `label` is 'bar'.
1 parent bcbf64e commit bcd9461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function hydrateRecord (record, fields) {
5555
break;
5656
}
5757

58-
row[field.name] = value;
58+
row[field.label] = value;
5959

6060
return row;
6161
}, {});

0 commit comments

Comments
 (0)