Skip to content
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
Closed

.pluck('col') regression #296

ericeslinger opened this issue Jun 4, 2014 · 2 comments
Labels
bug

Comments

@ericeslinger
Copy link
Contributor

@ericeslinger 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
Copy link
Member

@tgriesser tgriesser commented Jun 4, 2014

Thanks - will patch.

@tgriesser tgriesser added the bug label Jun 4, 2014
@tgriesser
Copy link
Member

@tgriesser 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants