generateSql method of GetViewDefinitionGeneratorMSSQL generate statement
exec sp_helptext '<upper case version of view name>'
which execution produces an error, because SQL Server cannot execute it, there is no such view.
Msg 15009, Level 16, State 1, Procedure sp_helptext, Line 54
The object 'dbo.VIEWCOMPANYPRODUCTTYPE' does not exist in database 'MVMDEVDB' or is invalid for this operation.
If I run this statement without upper case - it's ok.
Why liquibase does this conversion??? SQL Server is quite case sensitive database.
I think error is in this line:
String sql = "exec sp_helptext '" + schema.getSchemaName() + "."
+ statement.getViewName().toUpperCase() + "'";