We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c75743d commit 27ae20aCopy full SHA for 27ae20a
sqlmodel/sql/sqltypes.py
@@ -14,7 +14,9 @@ class AutoString(types.TypeDecorator): # type: ignore
14
15
def load_dialect_impl(self, dialect: Dialect) -> "types.TypeEngine[Any]":
16
impl = cast(types.String, self.impl)
17
- if impl.length is None and dialect.name == "mysql":
+ if impl.length is None and (
18
+ dialect.name == "mysql" or dialect.name == "mariadb"
19
+ ):
20
return dialect.type_descriptor(types.String(self.mysql_default_length))
21
return super().load_dialect_impl(dialect)
22
0 commit comments