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

Fix up bad detection of $$ delimiters in PostgreSQL dialect #67

Merged
merged 1 commit into from
Oct 23, 2018

Conversation

alex-hhh
Copy link
Owner

this resulted in severe performance degradation for the indent function and
bad anchor for the $$ blocks.

  • sql-indent.el (sqlind-maybe-create-statement): strip off any
    parens off the function name.
    (sqlind-maybe-$$-statement): re-wrote the function to avoid
    calling sqlind-beginning-of-block recursively.
    (sqlind-start-block-regexp): fixup $$ matching

this resulted in severe performance degradation for the indent function and
bad anchor for the $$ blocks.

* sql-indent.el (sqlind-maybe-create-statement): strip off any
parens off the function name.
(sqlind-maybe-$$-statement): re-wrote the function to avoid
calling `sqlind-beginning-of-block` recursively.
(sqlind-start-block-regexp): fixup $$ matching
@alex-hhh alex-hhh merged commit 14c3e33 into master Oct 23, 2018
@alex-hhh alex-hhh deleted the ah/bad-performance branch October 24, 2018 05:06
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

Successfully merging this pull request may close these issues.

1 participant