If a view has a comment then the converter will not properly parse the ddl.
The regex statement for parsing the view definition fails to find any matches if the view has a comment (which would come between the closing paren of the column defs and the \sas .
As a result, view_text is in effect the full body of the view ddl, which causes:
...
(
message => SQL compilation error:
syntax error line 18 at position 0 unexpected 'create'.
...
If a view has a comment then the converter will not properly parse the ddl.
The regex statement for parsing the view definition fails to find any matches if the view has a comment (which would come between the closing paren of the column defs and the
\sas
.As a result,
view_text
is in effect the full body of the view ddl, which causes: