Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.
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
10 changes: 5 additions & 5 deletions dbt/include/oracle/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@
numeric_precision as "numeric_precision",
numeric_scale as "numeric_scale"
from columns
where table_name = upper('{{ relation.identifier }}')
where upper(table_name) = upper('{{ relation.identifier }}')
{% if relation.schema %}
and table_schema = upper('{{ relation.schema }}')
and upper(table_schema) = upper('{{ relation.schema }}')
{% endif %}
{% if relation.database %}
and table_catalog = upper('{{ relation.database }}')
and upper(table_catalog) = upper('{{ relation.database }}')
{% endif %}
order by ordinal_position

Expand Down Expand Up @@ -269,8 +269,8 @@
end as "kind"
from tables
where table_type in ('BASE TABLE', 'VIEW')
and table_catalog = upper('{{ schema_relation.database }}')
and table_schema = upper('{{ schema_relation.schema }}')
and upper(table_catalog) = upper('{{ schema_relation.database }}')
and upper(table_schema) = upper('{{ schema_relation.schema }}')
{% endcall %}
{{ return(load_result('list_relations_without_caching').table) }}
{% endmacro %}
Expand Down