diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-09-28 16:47:28 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-09-28 16:51:35 -0400 |
| commit | 68b52c48b775f9a99d0bc3666ebe02c54e401303 (patch) | |
| tree | 3bd8eca79db0f4458ec87269934e6497fdbd0145 /lib/sqlalchemy/testing/requirements.py | |
| parent | 21ff71b0eb032d8ffd125ba7532ca2d29a206fb9 (diff) | |
| download | sqlalchemy-68b52c48b775f9a99d0bc3666ebe02c54e401303.tar.gz | |
Take schema name into account when querying sqlite_master
Fixed bug where SQLite CHECK constraint reflection would fail
if the referenced table were in a remote schema, e.g. on SQLite a
remote database referred to by ATTACH.
Also add suite support for general CHECK constraint reflection.
Change-Id: I073a72cb47dc4f8c5683000d708768523759332f
Fixes: #4099
Diffstat (limited to 'lib/sqlalchemy/testing/requirements.py')
| -rw-r--r-- | lib/sqlalchemy/testing/requirements.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index b3ad29a3b..a66b091aa 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -430,6 +430,11 @@ class SuiteRequirements(Requirements): return exclusions.open() @property + def check_constraint_reflection(self): + """target dialect supports reflection of check constraints""" + return exclusions.closed() + + @property def duplicate_key_raises_integrity_error(self): """target dialect raises IntegrityError when reporting an INSERT with a primary key violation. (hint: it should) |
