Skip to content

Commit 78714d5

Browse files
committed
Fix declare param_name cutting
1 parent 6d6e304 commit 78714d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb_sqlalchemy/sqlalchemy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def _format_variables(
354354
def _add_declare_for_yql_stmt_vars_impl(self, statement, parameters_types):
355355
declarations = "\n".join(
356356
[
357-
f"DECLARE $`{param_name[1:]}` as {str(param_type)};"
357+
f"DECLARE $`{param_name[1:] if param_name.startswith('$') else param_name}` as {str(param_type)};"
358358
for param_name, param_type in parameters_types.items()
359359
]
360360
)

0 commit comments

Comments
 (0)