Skip to content

Commit

Permalink
Fix declare param_name cutting
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvoleg committed Nov 28, 2024
1 parent 6d6e304 commit 78714d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb_sqlalchemy/sqlalchemy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def _format_variables(
def _add_declare_for_yql_stmt_vars_impl(self, statement, parameters_types):
declarations = "\n".join(
[
f"DECLARE $`{param_name[1:]}` as {str(param_type)};"
f"DECLARE $`{param_name[1:] if param_name.startswith('$') else param_name}` as {str(param_type)};"
for param_name, param_type in parameters_types.items()
]
)
Expand Down

0 comments on commit 78714d5

Please sign in to comment.