Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DdlDetectPostgres detection is fragile #8

Open
froque opened this issue Oct 4, 2024 · 0 comments
Open

DdlDetectPostgres detection is fragile #8

froque opened this issue Oct 4, 2024 · 0 comments

Comments

@froque
Copy link

froque commented Oct 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant