Skip to content

Commit 65c4340

Browse files
committed
bugfix for #110
1 parent 3cd1b52 commit 65c4340

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Configuration variables
2-
VERSION=1.5.3
2+
VERSION=1.5.4
33
PROJ_DIR?=$(shell pwd)
44
VENV_DIR?=${PROJ_DIR}/.bldenv
55
BUILD_DIR=${PROJ_DIR}/build

dbt/adapters/oracle/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17-
version = "1.5.6"
17+
version = "1.5.9"

dbt/adapters/oracle/connections.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17+
import json
1718
from typing import List, Optional, Tuple, Any, Dict, Union
1819
from contextlib import contextmanager
1920
from dataclasses import dataclass, field
@@ -219,8 +220,14 @@ def open(cls, connection):
219220
try:
220221
handle = oracledb.connect(**conn_config)
221222
# client_identifier and module are saved in corresponding columns in v$session
222-
handle.module = f'dbt-{dbt_version}'
223-
handle.client_identifier = f'dbt-oracle-client-{uuid.uuid4()}'
223+
action = "dbt run"
224+
client_identifier = f'dbt-oracle-client-{uuid.uuid4()}'
225+
module = f'dbt-{dbt_version}'
226+
client_info = {"action": action, "client_identifier": client_identifier, "module": module}
227+
logger.info(f"Session info :{json.dumps(client_info)}")
228+
handle.module = module
229+
handle.client_identifier = client_identifier
230+
handle.action = action
224231
connection.handle = handle
225232
connection.state = 'open'
226233
except oracledb.DatabaseError as e:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
dbt-core~=1.5,<1.6
22
cx_Oracle==8.3.0
3-
oracledb==1.4.1
3+
oracledb==1.4.2
44

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = dbt-oracle
3-
version = 1.5.3
3+
version = 1.5.4
44
description = dbt (data build tool) adapter for the Oracle database
55
long_description = file: README.md
66
long_description_content_type = text/markdown
@@ -35,7 +35,7 @@ include_package_data = True
3535
install_requires =
3636
dbt-core~=1.5,<1.6
3737
cx_Oracle==8.3.0
38-
oracledb==1.4.1
38+
oracledb==1.4.2
3939
test_suite=tests
4040
test_requires =
4141
dbt-tests-adapter~=1.5,<1.6

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
requirements = [
3535
"dbt-core~=1.5,<1.6",
3636
"cx_Oracle==8.3.0",
37-
"oracledb==1.4.1"
37+
"oracledb==1.4.2"
3838
]
3939

4040
test_requirements = [
@@ -52,7 +52,7 @@
5252

5353
url = 'https://github.com/oracle/dbt-oracle'
5454

55-
VERSION = '1.5.3'
55+
VERSION = '1.5.4'
5656
setup(
5757
author="Oracle",
5858
python_requires='>=3.7.2',

0 commit comments

Comments
 (0)