diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2020-08-21 21:39:40 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2020-08-21 21:39:40 +0000 |
| commit | 317f2e1be2b06cdc12bc84510eb743d9752763dd (patch) | |
| tree | acf50269494e5a14ec58ef87e511a8a93f1b263d /lib/sqlalchemy/testing/requirements.py | |
| parent | 9b6b867fe59d74c23edca782dcbba9af99b62817 (diff) | |
| parent | 26e8d3b5bdee50192e3426fba48e6b326e428e0b (diff) | |
| download | sqlalchemy-317f2e1be2b06cdc12bc84510eb743d9752763dd.tar.gz | |
Merge "Add support for identity columns"
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 301c9ef84..cc40022e9 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -1264,3 +1264,17 @@ class SuiteRequirements(Requirements): lambda config: not config.db.dialect.supports_is_distinct_from, "driver doesn't support an IS DISTINCT FROM construct", ) + + @property + def identity_columns(self): + """If a backend supports GENERATED { ALWAYS | BY DEFAULT } + AS IDENTITY""" + return exclusions.closed() + + @property + def identity_columns_standard(self): + """If a backend supports GENERATED { ALWAYS | BY DEFAULT } + AS IDENTITY with a standard syntax. + This is mainly to exclude MSSql. + """ + return exclusions.closed() |
