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

Allow tests to tolerate new default column encodings in Redshift #114

Merged
merged 1 commit into from Apr 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -11,6 +11,8 @@
(`Issue #101 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/101>`_)
- Support BZIP2 compression in COPY command
(`Issue #110 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/110>`_)
- Allow tests to tolerate new default column encodings in Redshift
(`Issue #114 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/114>`_)


0.5.0 (2016-04-21)
Expand Down
3 changes: 2 additions & 1 deletion tests/rs_sqla_test_utils/utils.py
Expand Up @@ -5,7 +5,8 @@


def clean(query):
return re.sub(r'\s+', ' ', query).strip()
encodings_removed = re.sub(r'\s+ENCODE\s+\w+', '', query)
return re.sub(r'\s+', ' ', encodings_removed).strip()


def compile_query(q):
Expand Down