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

Extract the construction of count distinct expression into its own method #474

Merged
merged 1 commit into from
Sep 12, 2013

Conversation

hprange
Copy link
Contributor

@hprange hprange commented Sep 11, 2013

This is a small refactoring (no changes in behavior) allowing concrete implementations of ERXSQLHelper class to provide their own mechanism to construct the SQL expression to count distinct rows. The default implementation doesn't support composite primary keys. Concrete implementations of ERXSQLHelper may override the sqlForCountDistinct method to change this behavior according to each database syntax.

…thod

This is a small refactoring (no changes in behavior) allowing concrete implementations of ERXSQLHelper class to provide their own mechanism to construct the SQL expression to count distinct rows. The default implementation doesn't support composite primary keys. Concrete implementations of ERXSQLHelper may override the `sqlForCountDistinct` method to change this behavior according to each database syntax.
hprange added a commit that referenced this pull request Sep 12, 2013
Extract the construction of count distinct expression into its own method
@hprange hprange merged commit aa68984 into wocommunity:integration Sep 12, 2013
@hprange hprange deleted the count-distinct-general branch September 12, 2013 17:09
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.

1 participant