Skip to content

Commit ff93789

Browse files
committed
Fixed oracle__get_limit_sql
1 parent 41ffb0a commit ff93789

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

dbt/include/oracle/macros/show.sql

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424

2525

2626
{% macro oracle__get_limit_sql(sql, limit) %}
27-
select *
28-
from (
29-
{{ sql }}
30-
)
31-
fetch first {{ limit }} rows only
27+
{{ compiled_code }}
28+
{% if limit is not none %}
29+
fetch first {{ limit }} rows only
30+
{%- endif -%}
3231
{% endmacro %}

0 commit comments

Comments
 (0)