diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-01-09 22:17:59 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-01-12 13:01:26 -0500 |
| commit | 7402987fd218c42ed2a909a5031186d2b702bb88 (patch) | |
| tree | a418897eb557bbdad09878aa7dcc2e2aab7dfb3a /lib/sqlalchemy/testing/requirements.py | |
| parent | 127ead7452f326509cde38fcf7c9f38f69d9ae0a (diff) | |
| download | sqlalchemy-7402987fd218c42ed2a909a5031186d2b702bb88.tar.gz | |
Make column-level collation quoting dialect-specific
Fixed regression in 1.2 where newly repaired quoting
of collation names in :ticket:`3785` breaks SQL Server,
which explicitly does not understand a quoted collation
name. Whether or not mixed-case collation names are
quoted or not is now deferred down to a dialect-level
decision so that each dialect can prepare these identifiers
directly.
Change-Id: Iaf0a8123d9bf4711219e320896bb28c5d2649304
Fixes: #4154
Diffstat (limited to 'lib/sqlalchemy/testing/requirements.py')
| -rw-r--r-- | lib/sqlalchemy/testing/requirements.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index b89d149d6..cc9e074ef 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -757,6 +757,20 @@ class SuiteRequirements(Requirements): return exclusions.closed() @property + def order_by_collation(self): + def check(config): + try: + self.get_order_by_collation(config) + return False + except NotImplementedError: + return True + + return exclusions.skip_if(check) + + def get_order_by_collation(self, config): + raise NotImplementedError() + + @property def unicode_connections(self): """Target driver must support non-ASCII characters being passed at all. |
