MINOR: Fix db2 license file import (#19731)

* Fix db2 license file import

* Update connection.py
This commit is contained in:
IceS2 2025-02-10 21:40:47 +01:00 committed by GitHub
parent 5bb8c5cfe3
commit 67899149e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ def get_connection(connection: Db2Connection) -> Engine:
"w",
encoding=UTF_8,
) as file:
file.write(connection.license)
file.write(connection.license.encode(UTF_8).decode("unicode-escape"))
return create_generic_db_connection(
connection=connection,