Skip to content

Conversation

@JamShady
Copy link
Contributor

In the case of multiple joins, where a specific field is required (e.g. id), the current implementation causes an 'ambiguous field' error, because 'id' is common to all tables.

This fix allows for the table name to be passed through to the select query, but other functionality to remain unchanged.

…g out table specific common names (e.g. ids)
@JamShady JamShady changed the title [4.2][Fix]: Query\Builder::lists("table.name") passes through full column identifier to query [4.2]: Query\Builder::lists("table.name") passes through full column identifier to query Dec 15, 2014
@taylorotwell
Copy link
Member

Use a "select" clause to make it not ambigious.

@JamShady
Copy link
Contributor Author

D'oh... cheers @taylorotwell

@JamShady JamShady deleted the pull-request/fix-lists-with-table-identifier branch December 15, 2014 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants