Skip to content

Commit 3659394

Browse files
authored
Merge pull request #49 from shashkin/remove-double-quoting
Avoid double-quoting of identifiers
2 parents 3240f95 + 8c717b6 commit 3659394

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)