Skip to content

Some tests for dialect ignores lack of support of CHECK CONSTRAINT #8805

Description

@daimor

Describe the bug

Faced during the development of a new Dialect https://github.com/caretdev/sqlalchemy-iris/

for instance sqlalchemy/testing/suite/test_reflection.py - QuotedNameArgumentTest
Uses CheckConstraint unconditionally

To Reproduce

@property
    def check_constraint_reflection(self):
        """target dialect supports reflection of check constraints"""
        return exclusions.closed()
    def visit_check_constraint(self, constraint, **kw):
        raise exc.CompileError("Check CONSTRAINT is not supported")


### Error

Check CONSTRAINT is not supported

### Versions

- OS:
- Python:
- SQLAlchemy:
- Database:
- DBAPI `intersystems-iris`

https://pypi.org/project/sqlalchemy-iris/


### Additional context

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions