Skip to content

Commit

Permalink
fix column name handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jwfraustro committed Oct 17, 2024
1 parent b0427d6 commit 293c426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vo_models/vodataservice/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ def validate_colname(cls, value: str):
value: - The column name to escape.
"""
if value.upper() in ADQL_SQL_KEYWORDS:
if value.strip("'\"").upper() in ADQL_SQL_KEYWORDS:
value = value.strip("'\"")
value = f'"{value}"'
return value

Expand Down

0 comments on commit 293c426

Please sign in to comment.