From 94ea80aeee681200c0ce4eb14f7d47c80984ee72 Mon Sep 17 00:00:00 2001 From: cool Date: Mon, 26 Jun 2023 14:25:09 +0800 Subject: [PATCH] fix #119 --- src/modules/cloud/service/db.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/cloud/service/db.ts b/src/modules/cloud/service/db.ts index 5cd1d6f..22b37ea 100644 --- a/src/modules/cloud/service/db.ts +++ b/src/modules/cloud/service/db.ts @@ -127,9 +127,10 @@ export class CloudDBService extends BaseService { await this.coolCloudDb.createTable(table.content, true); } // 所有云函数表 + const { database } = this.coolCloudDb.coolDataSource.options; const allTables = ( await this.coolCloudDb.coolDataSource.query( - "SELECT table_name from information_schema.columns where table_name like 'func_%' group by table_name" + `SELECT table_name from information_schema.columns where table_schema like '${database}' and table_name like 'func_%' group by table_name` ) ).map(e => { return e.TABLE_NAME || e.table_name;