From 6c431caec42abab960fddb0bd80d0d78a937b325 Mon Sep 17 00:00:00 2001 From: chenos Date: Sat, 15 Jun 2024 15:35:12 +0800 Subject: [PATCH] fix(mock-collections): syntax error at or near "-" --- .../@nocobase/plugin-mock-collections/src/server/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts b/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts index d3d3d5d044..77774de137 100644 --- a/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts +++ b/packages/plugins/@nocobase/plugin-mock-collections/src/server/index.ts @@ -334,8 +334,8 @@ export class PluginMockCollectionsServer extends Plugin { }); await client.connect(); - await client.query(`DROP DATABASE IF EXISTS ${externalDB}`); - await client.query(`CREATE DATABASE ${externalDB}`); + await client.query(`DROP DATABASE IF EXISTS "${externalDB}"`); + await client.query(`CREATE DATABASE "${externalDB}"`); await client.end(); // import sql import external database