From eb9cd80051f10a7afabd3a659de6d3b862aa4d35 Mon Sep 17 00:00:00 2001 From: ongdisheng Date: Tue, 3 Jun 2025 16:49:31 +0800 Subject: [PATCH] Fix MySQL connection error by ensuring password is always a string --- ibis-server/app/model/data_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibis-server/app/model/data_source.py b/ibis-server/app/model/data_source.py index 4328fec6b..ea6d04f7c 100644 --- a/ibis-server/app/model/data_source.py +++ b/ibis-server/app/model/data_source.py @@ -165,7 +165,7 @@ def get_mysql_connection(cls, info: MySqlConnectionInfo) -> BaseBackend: port=int(info.port.get_secret_value()), database=info.database.get_secret_value(), user=info.user.get_secret_value(), - password=(info.password and info.password.get_secret_value()), + password=info.password.get_secret_value() if info.password else "", **kwargs, )