Update oracle_impl.py

Fixed typing error in python3.9
This commit is contained in:
Suroy 2024-12-06 11:06:20 +08:00 committed by GitHub
parent 8a6796b9dc
commit 0614a93608
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -143,7 +143,7 @@ class OracleDB:
data = None data = None
return data return data
async def execute(self, sql: str, data: list | dict = None): async def execute(self, sql: str, data: Union[list, dict] = None):
# logger.info("go into OracleDB execute method") # logger.info("go into OracleDB execute method")
try: try:
async with self.pool.acquire() as connection: async with self.pool.acquire() as connection: