There was an error while loading. Please reload this page.
1 parent cbe1ead commit 50e7e1dCopy full SHA for 50e7e1d
1 file changed
create_view_with_comments_procedure.py
@@ -70,7 +70,7 @@ def CREATE_VIEW_WITH_COLUMN_COMMENTS(
70
columns.append(f"{col_name}")
71
72
# Escape single quotes in the comment string to make it a valid SQL literal
73
- escaped_comment = col_comment.replace("'", "''")
+ escaped_comment = col_comment.replace("'", "''") if col_comment else ""
74
column_row = f" {col_name} COMMENT '{escaped_comment}'"
75
columns_with_comments.append(column_row)
76
0 commit comments