Skip to content

DdlDetectPostgres detection is fragile #8

@froque

Description

@froque

private static final Pattern IX_CONCURRENTLY = Pattern.compile(Pattern.quote(" index concurrently "), Pattern.CASE_INSENSITIVE);

This is detected as non-transactional:
create index concurrently ix_acl_container_relation_container_id on acl_container_relation (container_id);

This is detected as transactional (extra space):
create index concurrently ix_acl_container_relation_container_id on acl_container_relation (container_id);

It could also contain multiple new lines between index and concurrently

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions