6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 13:33:07 +01:00

Report dsn rather than db_path on database creation

This commit is contained in:
Pavel Císař 2021-11-18 20:13:14 +01:00
parent ea95f54d07
commit 2fc37373b5

View File

@ -239,7 +239,7 @@ class Database:
def create(self, page_size: int=None, sql_dialect: int=None, charset: str=None) -> None:
#__tracebackhide__ = True
self._make_config(page_size=page_size, sql_dialect=sql_dialect, charset=charset)
print(f"Creating db: {self.db_path} [{page_size=}, {sql_dialect=}, {charset=}, user={self.user}, password={self.password}]")
print(f"Creating db: {self.dsn} [{page_size=}, {sql_dialect=}, {charset=}, user={self.user}, password={self.password}]")
db = create_database('pytest')
db.close()
def restore(self, backup: str) -> None: