Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@victorandree
Copy link
Contributor

If a table alias is used for the main table, it's not valid according to the SQL standard to refer to it by its "real name" anymore (see http://www.postgresql.org/docs/8.2/static/queries-table-expressions.html#QUERIES-TABLE-ALIASES).

This causes problems when doing JOIN with a table alias for the "main table", since previous code always used the table name. Now, the conditon code checks for presence of a table alias and uses that if available.

If a table alias is used for the main table, it's not valid according
to the SQL standard to refer to it by it's "real name" (see
http://www.postgresql.org/docs/8.2/static/queries-table-expressions.html
#QUERIES-TABLE-ALIASES). This causes problems when doing JOIN with a
table alias for the "main table", since previous code always used table
name. Now, we check for a table alias.
@ghost ghost assigned treffynnon Aug 14, 2013
@treffynnon
Copy link
Collaborator

Thank you for the pull request, code and test. This looks good to merge!

@treffynnon
Copy link
Collaborator

Merged in commit d477a0c

@treffynnon treffynnon closed this Aug 28, 2013
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