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: PG::SyntaxError: Replace 'DISCARD ALL' query to similer operations. #26

Closed
wants to merge 3 commits into from

Conversation

taise
Copy link

@taise taise commented Jun 9, 2016

DISCARD was implemented on PostgreSQL since v8.3
However, Redshift is based on PostgreSQL 8.0.2

References

Fix: #25

* DISCARD` was implemented on PostgreSQL since v8.3
  However, Redshift is based on PostgreSQL 8.0.2

References
* [PostgreSQL DISCARD](https://www.postgresql.org/docs/current/static/sql-discard.html)
* [Amazon Redshift and PostgreSQL](http://docs.aws.amazon.com/redshift/latest/dg/c_redshift-and-postgres-sql.html)
@taise taise force-pushed the fix/discard_is_not_valid branch from ff4f777 to 92d3ae7 Compare June 9, 2016 13:05
taise added 2 commits June 9, 2016 22:39
* Redshift has only 'DEALLOCATE plan_name', and doesn't have 'DEALLOCATE ALL'
> Closes all of the free resources that are associated with an open cursor.
> COMMIT, END, and ROLLBACK automatically close the cursor

[Amazon Redshift -
CLOSE](http://docs.aws.amazon.com/redshift/latest/dg/close.html)
@hui
Copy link

hui commented Aug 19, 2016

+1

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.

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