Skip to content

Commit 2cf6861

Browse files
committed
SID and service name is needed for database type oracle only
1 parent 3c28c99 commit 2cf6861

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Framework/Built_In_Automation/Database/BuiltInFunctions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ def db_get_connection():
170170
if ":" in db_host:
171171
db_host, db_port = db_host.rsplit(":", 1)
172172
db_port = int(db_port)
173-
174-
db_sid = g(DB_SID)
175-
db_service_name = g(DB_SERVICE_NAME)
173+
if "oracle" in db_type:
174+
db_sid = g(DB_SID)
175+
db_service_name = g(DB_SERVICE_NAME)
176176

177177
if "postgres" in db_type:
178178
import psycopg2

0 commit comments

Comments
 (0)