Skip to content

Commit 7e74ed8

Browse files
authored
fix: properly override _cursor_kwargs (#1529)
1 parent 0923e12 commit 7e74ed8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

sqlmesh/core/config/connection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,10 @@ class MySQLConnectionConfig(ConnectionConfig):
676676

677677
type_: Literal["mysql"] = Field(alias="type", default="mysql")
678678

679-
_cursor_kwargs = {"buffered": True}
679+
@property
680+
def _cursor_kwargs(self) -> t.Optional[t.Dict[str, t.Any]]:
681+
"""Key-value arguments that will be passed during cursor construction."""
682+
return {"buffered": True}
680683

681684
@property
682685
def _connection_kwargs_keys(self) -> t.Set[str]:

0 commit comments

Comments
 (0)