Skip to content

persist_docs fails if model description contains an apostrophe #1251

@vergenzt

Description

@vergenzt

The macro implementation at

{%- macro get_create_sql_comment(comment) -%}
{% if comment is string -%}
COMMENT '{{ comment }}'
{%- endif -%}
{%- endmacro -%}
which is used to generate some relation comment clauses when persist_docs.relation is true, does not properly escape single quotes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions