Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sqlalchemy_hana/dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ def default_from(self) -> str:
def limit_clause(self, select: Select[Any], **kw: Any) -> str:
text = ""
if select._limit_clause is not None:
text += "\n LIMIT " + self.process(select._limit_clause, **kw)
text += "\nLIMIT " + self.process(select._limit_clause, **kw)
if select._offset_clause is not None:
if select._limit_clause is None:
# 2147384648 is the max. no. of records per result set
# we can hardcode the value, because using a limit would lead to another cache key
text += "\n LIMIT 2147384648"
text += "\nLIMIT 2147384648"
text += " OFFSET " + self.process(select._offset_clause, **kw)
return text

Expand Down
Loading