-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Given from sqlalchemy_iris import LONGVARCHAR
class XxxEntity(Base):
data: Mapped[str] = mapped_column(LONGVARCHAR)
When trying to apply alembic migration there is error.
"sqlalchemy.exc.CompileError: (in table 'event', column 'data'): Compiler <sqlalchemy_iris.base.IRISTypeCompiler object at 0x108996c10> can't render element of type LONGVARCHAR"
Our workaround is:
from sqlalchemy_iris.base import IRISTypeCompiler
IRISTypeCompiler.visit_LONGVARCHAR = lambda self, type_, **kw: "LONGVARCHAR"
I guess there is a missing method in IRISTypeCompiler.
Could be that other methods are missing as well.
Metadata
Metadata
Assignees
Labels
No labels