Skip to content

Commit 8c717b6

Browse files
committed
Avoid double-quoting of identifiers
1 parent 3240f95 commit 8c717b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/sqlalchemy/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def __init__(self, dialect):
3737
)
3838

3939
def _requires_quotes(self, *args, **kwargs):
40-
# Force all identifiers to get quoted.
41-
return True
40+
# Force all identifiers to get quoted unless already quoted.
41+
return not (value.startswith(self.initial_quote) and value.endswith(self.final_quote))
4242

4343
class YqlTypeCompiler(GenericTypeCompiler):
4444
def visit_VARCHAR(self, type_, **kw):

0 commit comments

Comments
 (0)