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

fix: ORDER BY in findFromSql #148

Merged
merged 2 commits into from May 30, 2017
Merged

Conversation

dsavina
Copy link

@dsavina dsavina commented May 29, 2017

In generated Dao classes method findFromSql (using TDBMService::findObjectsFromSql), it is now possible to order row by columns out of the main table.

The drawback is that, when wrongly used, it is now possible to retrieve the same object multiple times. Maybe implementing GROUP BY support would allow us to prevent developer's mistakes?

… inherited tables in one SELECT

Signed-off-by: Dorian Savina <d.savina@thecodingmachine.com>
…d TestUserDao::getUsersFromSqlByCountryOrder

Signed-off-by: Dorian Savina <d.savina@thecodingmachine.com>
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 94.883% when pulling 7a9be36 on dsavina:fix/order-by into e195867 on thecodingmachine:4.3.

@moufmouf
Copy link
Member

Perfect for me.
Unit tests are passing and code coverage is good (despite what coveralls says).

👍

@moufmouf moufmouf merged commit b119371 into thecodingmachine:4.3 May 30, 2017
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.

None yet

3 participants