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

Make builder work with frozen strings #78

Merged
merged 1 commit into from
Feb 8, 2019

Conversation

barthez
Copy link
Contributor

@barthez barthez commented Dec 5, 2018

Hey @jenseng,

I stumbled upon the error when defining triggers in file with frozen_string_literals: true comment. It turned out the builder is modifying SQL trigger body in place. I fixed it by using immutable modifications while ensuring semicolon presence.

WDYT?

When defining triggers in files with `frozen_string_literals: true`
comment, builder fails on appending semicolons to SQL.

Use immutable modifications while ensuring semicolon presence.
@jenseng
Copy link
Owner

jenseng commented Feb 8, 2019

Looks great, thanks @barthez!

@jenseng jenseng merged commit 3e82999 into jenseng:master Feb 8, 2019
@jenseng
Copy link
Owner

jenseng commented Feb 8, 2019

Released in 0.2.22

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.

None yet

2 participants