From c3d4c642e98e6f5eb6a08facac042deb39581f72 Mon Sep 17 00:00:00 2001 From: junjun Date: Wed, 17 Sep 2025 16:22:08 +0800 Subject: [PATCH] fix: Fix possible SQL injection vulnerabilities --- backend/apps/db/db_sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/db/db_sql.py b/backend/apps/db/db_sql.py index bcba6acc..8651e1f0 100644 --- a/backend/apps/db/db_sql.py +++ b/backend/apps/db/db_sql.py @@ -143,7 +143,7 @@ def get_table_sql(ds: CoreDatasource, conf: DatasourceConf, db_version: str = '' def get_field_sql(ds: CoreDatasource, conf: DatasourceConf, table_name: str = None): - if ds.type == "mysql" or ds.type == "doris": + if ds.type == "mysql": sql1 = """ SELECT COLUMN_NAME,