fix: Fix possible SQL injection vulnerabilities

This commit is contained in:
junjun
2025-09-17 16:22:08 +08:00
parent d1e7c2078f
commit c3d4c642e9
+1 -1
View File
@@ -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,