Skip to content

Commit 8b0cbb4

Browse files
committed
fix:dashboard schema bug
1 parent 4377e89 commit 8b0cbb4

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

chat2db-client/src/pages/main/dashboard/chart-item/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function ChartItem(props: IChartItemProps) {
119119
};
120120

121121
const handleExecuteSQL = async (sql: string, _chartData: IChartItem) => {
122-
const { dataSourceId, databaseName } = _chartData;
122+
const { dataSourceId, databaseName, schemaName } = _chartData;
123123
if (!isValid(dataSourceId)) {
124124
message.success(i18n('dashboard.editor.execute.noDataSource'));
125125
return;
@@ -130,6 +130,7 @@ function ChartItem(props: IChartItemProps) {
130130
sql,
131131
dataSourceId,
132132
databaseName,
133+
schemaName
133134
};
134135
// 获取当前SQL的查询结果
135136
const sqlResult = await sqlService.executeSql(executeSQLParams);

chat2db-client/src/typings/dashboard.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ export interface IChartItem {
4747
type?: string;
4848
/** db名称 */
4949
databaseName?: string;
50+
/** schema名称 */
51+
schemaName?: string;
5052
/** ddl内容 */
5153
ddl?: string;
5254
/** 是否链接 */

0 commit comments

Comments
 (0)