New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.pluck('col') regression #296

Closed
ericeslinger opened this Issue Jun 4, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@ericeslinger
Contributor

ericeslinger commented Jun 4, 2014

In the latest (0.6.1) version, a knex('table').where('stuff').pluck('id') no longer resolves to an array of ids, it seems to just resolve to the same thing .select('*') would resolve to.

I worked around just by replacing all my .pluck 'id' calls with .select().then (vals)->vals.map (v)->v.id.

@tgriesser

This comment has been minimized.

Owner

tgriesser commented Jun 4, 2014

Thanks - will patch.

@tgriesser tgriesser added the bug label Jun 4, 2014

@tgriesser

This comment has been minimized.

Owner

tgriesser commented Jun 4, 2014

Fixed & in 0.6.2

@tgriesser tgriesser closed this Jun 4, 2014

@tgriesser tgriesser added the fixed label Jun 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment