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

Trigger script without SETs produces invalid script #103

Merged
merged 2 commits into from
Jul 29, 2016

Conversation

danbrad
Copy link
Contributor

@danbrad danbrad commented Jul 29, 2016

If your database settings for ANSI_NULLS and QUOTED_IDENTIFIER are ON, then the SETs are not outputted in the script.

This is fine, but if your trigger definition does not have a new line at the end, then the ENABLE ends up being added straight onto the end of the definition, giving you e.g. "INSERTEDENABLE"

I have added a newline before the ENABLE keyword to guarantee that this can never happen.

If you'd like me to do something different, let me know.

Thanks

… added directly after the trigger definition with no new line.
…sn't tacked onto teh end of the definition when there are no SETs
@sethreno sethreno merged commit 379d8f6 into sethreno:master Jul 29, 2016
@danbrad danbrad deleted the TriggerScriptWithoutSetsNoNewline branch July 29, 2016 16:47
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.

2 participants