diff --git a/vo_models/vodataservice/models.py b/vo_models/vodataservice/models.py index 0ac37c5..c6cc2cf 100644 --- a/vo_models/vodataservice/models.py +++ b/vo_models/vodataservice/models.py @@ -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