From f64ff18fd2d0f2d69d272d60522e3930e0762270 Mon Sep 17 00:00:00 2001 From: Lewis Davies Date: Wed, 23 Dec 2020 15:18:39 -0800 Subject: [PATCH] Change all indentifier comparisons to uppercase --- dbt/include/oracle/macros/adapters.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dbt/include/oracle/macros/adapters.sql b/dbt/include/oracle/macros/adapters.sql index 524c501..4a0766d 100644 --- a/dbt/include/oracle/macros/adapters.sql +++ b/dbt/include/oracle/macros/adapters.sql @@ -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 @@ -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 %}