Skip to content

Missing newlines if source files do not start with BEGIN;\n SELECT ... #3

@oguzhanogreden

Description

@oguzhanogreden

The create- file generated by the module will have lines as follows, if the source file does not have an empty line as its first line:

-- test_input/test.pgsqlCREATE MATERIALIZED VIEW test.test_table_mv

whereas it should be regardless of how the file starts:

-- test_input/test.pgsql
CREATE MATERIALIZED VIEW test.test_table_mv

Thanks for the module, I'll get to this soon and send a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions