Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Added consts for left and right outer joins #6931

Closed
wants to merge 2 commits into from

Conversation

AGmakonts
Copy link
Contributor

Currently you have to pass string and manually specify the join type if it's not included in constants.

Currently you have to pass string and manually specify the join type if it's not included in constants.
@macnibblet
Copy link
Contributor

Thanks 👍

Any chance you could add docblocks for all public methods that don't have them ?

const JOIN_RIGHT_OUTER = 'outer right';
const JOIN_LEFT_OUTER = 'outer left';
const JOIN_RIGHT_INNER = 'inner right';
const JOIN_LEFT_INNER = 'inner left';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK there are no left / right INNER joins? Right / left joins are specific outer joins.
Therefore, JOIN_LEFT_INNER / JOIN_RIGHT_INNER aren't meaningful while JOIN_LEFT_OUTER and JOIN_RIGHT_OUTER MIGHT be acceptable for commonly used, already existing JOIN_LEFT / JOIN_RIGHT.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not to be pedantic, but... considering the actual word order, shouldn't these be:

  • JOIN_OUTER_RIGHT
  • JOIN_INNER_LEFT
  • etc.

? Right now, the constant names do not mirror the actual usage, which could be confusing, particularly if you were to use the constant value elsewhere.

Additionally removed unnecessary inner joins constants
@AGmakonts
Copy link
Contributor Author

Names rearranged :) also I have removed those inners mentioned by @Pittiplatsch

@AGmakonts AGmakonts changed the title Added consts for left and right outer/inner joins Added consts for left and right outer joins Feb 19, 2015
weierophinney added a commit that referenced this pull request Feb 24, 2015
Added consts for left and right outer joins
weierophinney added a commit that referenced this pull request Feb 24, 2015
@weierophinney
Copy link
Member

Merged to develop for release in 2.4.

@AGmakonts AGmakonts deleted the patch-1 branch March 23, 2015 21:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants