From 293c426a4a061f9dcefee6dda8d28b6968208602 Mon Sep 17 00:00:00 2001 From: Joshua Fraustro Date: Thu, 17 Oct 2024 12:34:46 -0400 Subject: [PATCH] fix column name handling --- vo_models/vodataservice/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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