-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Get view definition for SQL Server #4844
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the patch. Please add an integration test or reuse an existing one.
Given that the DBAL doesn't use views itself, I'd rather classify this as an improvement. In this case, the patch should target |
Hi @morozov , thank you for review. I will add tests for this. I am sorry, should I change the current PR base to |
Yes, this was the first step. Now you need to rebase your changes on $ git checkout fix-sqlserver-view
$ git rebase HEAD~ --onto 3.2.x # this assumes you want to rebase one commit
$ git push -f # adjust according to your remote naming |
877213a
to
d935c0f
Compare
Hello @morozov Following items completed.
Please review. |
@kitloong looks good. Please squash again. |
Currently, SQLServer2012Platform::getListViewsSQL does not export view definition. This commit get view definition for SQL server. Reference: https://docs.microsoft.com/en-us/sql/relational-databases/views/get-information-about-a-view?view=sql-server-ver15#to-get-the-definition-and-properties-of-a-view
e58dd7d
to
537d889
Compare
Thanks, @kitloong! |
Summary
Currently,
SQLServer2012Platform::getListViewsSQL
does not export view definition.This PR updated the SQL so that
Doctrine\DBAL\Schema\View::getSql()
will return view definition instead of empty string.