Skip to content

Commit

Permalink
bug_fix(1477): type handling in _add_sql_comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aryabharat committed Dec 17, 2024
1 parent 59ecd4d commit 764a4b5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def _add_sql_comment(sql, **meta) -> str:
"""
meta.update(**_add_framework_tags())
comment = _generate_sql_comment(**meta)
# converting to str to handle any type errors
sql = str(sql)
sql = sql.rstrip()
if sql[-1] == ";":
sql = sql[:-1] + comment + ";"
Expand Down

0 comments on commit 764a4b5

Please sign in to comment.