Skip to content

Conversation

jeffgbutler
Copy link
Member

If an order by column is not in the select list, and there is a join, then specifying the proper join clause can be a bit difficult. This PR adds a new SortSpecification implementation designed for this purpose, and a utility method in the SqlBuilder to create it.

Resolves #268

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling ee204a8 on jeffgbutler:improve-orderby into 365d381 on mybatis:master.

@jeffgbutler jeffgbutler added this to the 1.3.0 milestone Oct 5, 2020
@jeffgbutler jeffgbutler merged commit eb45ad3 into mybatis:master Oct 5, 2020
@jeffgbutler jeffgbutler deleted the improve-orderby branch October 5, 2020 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception: java.sql.SQLIntegrityConstraintViolationException: Column 'created_time' in order clause is ambiguous

2 participants