Skip to content

Commit 4c8a9a5

Browse files
author
Naoya Kanai
authored
Fix MotherDuck token attach syntax (#3659)
1 parent 29c3532 commit 4c8a9a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlmesh/core/config/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def to_sql(self, alias: str) -> str:
372372
f" AS {alias}" if not (self.type == "motherduck" or self.path.startswith("md:")) else ""
373373
)
374374
options_sql = f" ({', '.join(options)})" if options else ""
375-
token_sql = "?" + self.token if self.token else ""
375+
token_sql = "?motherduck_token=" + self.token if self.token else ""
376376
return f"ATTACH '{self.path}{token_sql}'{alias_sql}{options_sql}"
377377

378378

0 commit comments

Comments
 (0)