diff --git a/sqlalchemy_hana/dialect.py b/sqlalchemy_hana/dialect.py index 3b8c499..e66d002 100644 --- a/sqlalchemy_hana/dialect.py +++ b/sqlalchemy_hana/dialect.py @@ -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