Co-authored-by: root <root@thinkpad-pc.localdomain> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
b38f195a0d
commit
7566d90dfe
1 changed files with 13 additions and 2 deletions
|
|
@ -109,6 +109,17 @@ class OracleVector(BaseVector):
|
||||||
)
|
)
|
||||||
|
|
||||||
def _get_connection(self) -> Connection:
|
def _get_connection(self) -> Connection:
|
||||||
|
if self.config.is_autonomous:
|
||||||
|
connection = oracledb.connect(
|
||||||
|
user=self.config.user,
|
||||||
|
password=self.config.password,
|
||||||
|
dsn=self.config.dsn,
|
||||||
|
config_dir=self.config.config_dir,
|
||||||
|
wallet_location=self.config.wallet_location,
|
||||||
|
wallet_password=self.config.wallet_password,
|
||||||
|
)
|
||||||
|
return connection
|
||||||
|
else:
|
||||||
connection = oracledb.connect(user=self.config.user, password=self.config.password, dsn=self.config.dsn)
|
connection = oracledb.connect(user=self.config.user, password=self.config.password, dsn=self.config.dsn)
|
||||||
return connection
|
return connection
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue