Rifqi Hafizuddin commited on
Commit ·
b4df8b1
1
Parent(s): a205d0c
fix: minor returned type if sql writes limit yang melebihi batas
Browse files
src/query/executors/db_executor.py
CHANGED
|
@@ -633,9 +633,9 @@ class DbExecutor(BaseExecutor):
|
|
| 633 |
if existing:
|
| 634 |
current = int(existing.expression.this)
|
| 635 |
if current > limit:
|
| 636 |
-
|
| 637 |
else:
|
| 638 |
-
|
| 639 |
return parsed.sql()
|
| 640 |
|
| 641 |
def _run_sql(self, engine: Any, sql: str) -> list[dict]:
|
|
|
|
| 633 |
if existing:
|
| 634 |
current = int(existing.expression.this)
|
| 635 |
if current > limit:
|
| 636 |
+
return parsed.limit(limit).sql()
|
| 637 |
else:
|
| 638 |
+
return parsed.limit(limit).sql()
|
| 639 |
return parsed.sql()
|
| 640 |
|
| 641 |
def _run_sql(self, engine: Any, sql: str) -> list[dict]:
|