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:
engchina 2025-08-12 10:26:13 +08:00 • committed by GitHub
commit 7566d90dfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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