We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e75247e commit 4127576Copy full SHA for 4127576
postgrest/base_request_builder.py
@@ -52,18 +52,21 @@ def _unique_columns(json: List[Dict]):
52
return columns
53
54
55
-def _cleaned_columns(columns: str) -> str:
+def _cleaned_columns(columns: Tuple[str, ...]) -> str:
56
quoted = False
57
- result = []
58
-
59
- for c in columns:
60
- if c.isspace() and not quoted:
61
- continue
62
- if c == '"':
63
- quoted = not quoted
64
- result.append(c)
65
66
- return ",".join(result)
+ cleaned = []
+
+ for column in columns:
+ clean_column = ""
+ for char in column:
+ if char.isspace() and not quoted:
+ continue
+ if char == '"':
+ quoted = not quoted
+ clean_column += char
67
+ cleaned.append(clean_column)
68
69
+ return ",".join(cleaned)
70
71
72
def pre_select(
0 commit comments