Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
SqlBuilder: Added alias support #119
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 missing newline at end of file, see https://github.com/nette/database/pull/119/files#diff-736e93a1f9065b1b46a47c182c44e663R103