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

DISCARD isn't valid in Redshift, so connection#reset! throws #25

Open
smcgivern opened this issue Apr 20, 2016 · 0 comments
Open

DISCARD isn't valid in Redshift, so connection#reset! throws #25

smcgivern opened this issue Apr 20, 2016 · 0 comments

Comments

@smcgivern
Copy link

https://github.com/aamine/activerecord4-redshift-adapter/blob/master/lib/active_record/connection_adapters/redshift_adapter.rb#L247 runs DISCARD ALL, but that's not valid in Redshift, so it throws an exception instead:

# DISCARD ALL;
ERROR:  syntax error at or near "DISCARD"
LINE 1: DISCARD ALL;
        ^

This should probably be replaced with something like pg_terminate_backend, but that might not behave exactly the same way.

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