Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit beba986

Browse files
committed
Fixed NotImplimentedError for other DBs
1 parent 4f77c64 commit beba986

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sqeleton/databases/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def explain_as_text(self, query: str) -> str:
169169
return f"EXPLAIN {query}"
170170

171171
def optimizer_hints(self, s: str):
172-
return f"/*+ {s} */ " if s else ""
172+
return f"/*+ {s} */ "
173173

174174
def _constant_value(self, v):
175175
if v is None:

sqeleton/queries/ast_classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def compile(self, parent_c: Compiler) -> str:
700700

701701
columns = ", ".join(map(c.compile, self.columns)) if self.columns else "*"
702702
distinct = "DISTINCT " if self.distinct else ""
703-
optimizer_hints = c.dialect.optimizer_hints(self.optimizer_hints)
703+
optimizer_hints = c.dialect.optimizer_hints(self.optimizer_hints) if self.optimizer_hints else ""
704704
select = f"SELECT {optimizer_hints}{distinct}{columns}"
705705

706706
if self.table:

0 commit comments

Comments
 (0)