Skip to content

Conversation

@norbe
Copy link
Contributor

@norbe norbe commented Mar 4, 2016

This patch allows to specify alias for given table chain. Aliases can be even nested.

I have also added some checks if table alias is unique. Old behaviour in some cases silently skip tables or just works weird. It can found some hidden bugs in application. For example $context->table('book')->select('book.author.column') was translated to 'book.column'.

@norbe norbe force-pushed the kh-added-alias-support branch 2 times, most recently from a8819a7 to 9521ed6 Compare March 4, 2016 13:01
@norbe
Copy link
Contributor Author

norbe commented Mar 5, 2016

Can someone tell me what is wrong in SqlBuilder.addAlias().phpt?

From "[FOUND] tests/Database/Table/SqlBuilder.addAlias().phpt -1 bytes of whitespaces" I really don't know what is wrong..

@Unlink
Copy link
Contributor

Unlink commented Mar 5, 2016

You should use code-checker -f to fix this.

@janpecha
Copy link

janpecha commented Mar 6, 2016

@norbe norbe force-pushed the kh-added-alias-support branch from 9521ed6 to f43aaf3 Compare March 6, 2016 18:40
@norbe
Copy link
Contributor Author

norbe commented Mar 6, 2016

@Unlink, @janpecha: Thanks

@norbe
Copy link
Contributor Author

norbe commented Mar 20, 2016

@dg Can I do somethink for merge of this feature?



/**
* Alias table
Copy link
Member

Choose a reason for hiding this comment

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

Aliases table.

@norbe norbe force-pushed the kh-added-alias-support branch from f43aaf3 to 99fe59e Compare March 21, 2016 07:02
@norbe
Copy link
Contributor Author

norbe commented Apr 1, 2016

Anything else?

@dg dg closed this in 1329476 Apr 1, 2016
@dg
Copy link
Member

dg commented Apr 1, 2016

@norbe Thank you!

@norbe
Copy link
Contributor Author

norbe commented Apr 1, 2016

Can I check coding standard automatically somehow for future?

@dg
Copy link
Member

dg commented Apr 1, 2016

Unfortunatelly I haven't tool for checking coding style.

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.

4 participants