From 3f4047348258ca8709bd1c2ee2f7792227c85eba Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Thu, 25 Apr 2024 14:20:29 -0700 Subject: [PATCH] v1.7.5 - ORA-14452: attempt to create, alter or drop an index on temporary table already in use - https://github.com/advisories/GHSA-2m57-hf25-phgg --- Makefile | 2 +- dbt/adapters/oracle/__version__.py | 2 +- dbt/include/oracle/macros/adapters.sql | 2 +- setup.cfg | 2 +- setup.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c0629a0..ade00f9 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # Configuration variables -VERSION=1.7.4 +VERSION=1.7.5 PROJ_DIR?=$(shell pwd) VENV_DIR?=${PROJ_DIR}/.bldenv BUILD_DIR=${PROJ_DIR}/build diff --git a/dbt/adapters/oracle/__version__.py b/dbt/adapters/oracle/__version__.py index b94a73e..39a5e48 100644 --- a/dbt/adapters/oracle/__version__.py +++ b/dbt/adapters/oracle/__version__.py @@ -14,4 +14,4 @@ See the License for the specific language governing permissions and limitations under the License. """ -version = "1.7.11" +version = "1.7.13" diff --git a/dbt/include/oracle/macros/adapters.sql b/dbt/include/oracle/macros/adapters.sql index d7f7e1a..1048127 100644 --- a/dbt/include/oracle/macros/adapters.sql +++ b/dbt/include/oracle/macros/adapters.sql @@ -151,7 +151,7 @@ create {% if temporary -%} global temporary {%- endif %} table {{ relation.include(schema=(not temporary)) }} - {%- if contract_config.enforced -%} + {%- if contract_config.enforced and not temporary -%} {{ get_assert_columns_equivalent(sql) }} {{ get_table_columns_and_constraints() }} {%- set sql = get_select_subquery(sql) %} diff --git a/setup.cfg b/setup.cfg index 5a8ef0c..3979ae5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = dbt-oracle -version = 1.7.4 +version = 1.7.5 description = dbt (data build tool) adapter for Oracle Autonomous Database long_description = file: README.md long_description_content_type = text/markdown diff --git a/setup.py b/setup.py index 6dcfb80..22ccafe 100644 --- a/setup.py +++ b/setup.py @@ -59,7 +59,7 @@ url = 'https://github.com/oracle/dbt-oracle' -VERSION = '1.7.4' +VERSION = '1.7.5' setup( author="Oracle", python_requires='>=3.8',