mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: Fix possible SQL injection vulnerabilities
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user